Site search

Site menu:

Tags

Recent favourite

  1. cd cover

dgomes@twitter

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

Comments

Comment from David Rodrigues
Time 5 December, 2007 at 5:42 pm

I use

export LSCOLORS=dxfxcxdxbxegedabagacad

for black backgrounds. It gives you yellow directories…

Also a “man ls” in the terminal will give all the options for the color sequence…

Write a comment