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'
Written by Lars
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#