- Copy or link
dircolorsfile to~/.dir_colors - Put something like this in your shell resource file:
eval $( dircolors -b $HOME/.dir_colors ) - 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/.dir_colors )
alias dir='dir --color'
alias ls='ls --color'
