- Copy or link
dircolorsfile to~/.dircolors - Put something like this in your shell resource file:
eval $( dircolors -b $HOME/.dircolors ) - To use the colors add the
--colorswitch to the invocation of LS or DIR.
Add the following three lines to your ~/.bashrc or ~/.zshrc file:
eval $( dircolors -b $HOME/.dircolors )
alias dir='dir --color'
alias ls='ls --color'
