bash in living color

 

For all of you switchers from Linux to OS X, that cannot live without a bash terminal open 24/24:

You have probably, and sadly, realised that your Terminal does not come with “so nice to have” color tagging of files in your ls command.

Your 1st idea was probably to pickup your old trusty (and awfully hacked) .bashrc from your Linux system and place it in your OS X system. Unfortunately you sadly came to the conclusion that it didn’t work. :(

The correct trick is explained in here, and mostly consists of:

Opening up ~/.bash_profile and adding the following lines:

export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad

written by Diogo Gomes