Just add the following 2 lines to your /etc/profile
, ~/.profile
or ~/.bash_profile
:
export CLICOLOR=1 export LSCOLORS=GxFxCxDxBxegedabagaced
Then to make it work you have to close and open again the terminal application.
Source: StackOverflow.