Last Updated: February 25, 2016
·
656
· hashdot

Colored "ls" in OSX and Linux

OSX

Edit your .bash_profile with vim or something and add the line:

LSCOLORS=DxGxcxdxCxegedabagacad
alias ls='ls -lhG'

Linux

Edit your .bashrc and add the line:

LSCOLORS=DxGxcxdxCxegedabagacad
alias ls='ls -lh --color'