Thursday, 29 July 2010
HomeMac OS XEnabling colours with "ls" in OS X terminal
 

March 9th 2008

Enabling colours with “ls” in OS X terminal

On Linux you can type “ls –color” to get a directory listing in glorious colour, however the same command doesn’t work quite as well on OS X. The solution is to add the following lines to ~/.profile and then just use “ls” as normal:
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad

Leave a Reply