hohle
Mac OS X Tiger: Bash Colors
by Jon on Tuesday, December 20, 2005 file under: Technology

This afternoon I noticed that bash wasn't coloring folders, simlinks, executables, etc, so I used the nifty search feature on the side bar to find a post I had written about a year ago for getting ls to display pretty colors.

Unfortunately, while this worked for OS X Panther, it no longer seems to work in Tiger, and I must not have noticed it until now. Here's how I got colors back into my ls output:

First, you must edit /etc/bashrc using your text editor of choice. My bashrc is heavily based off of my Linux bashrc's, so it might be a little different the the default, but adding these lines should get color back:

    export CLICOLOR=1
    export TERM=xterm-color

If you want to use your terminal's color scheme, you can add the following as well:

    export LSCOLORS=ExFxCxDxBxegedabagacad
Permanent link to Mac OS X Tiger: Bash Colors

hohle.net | hohle.org | hohle.name | hohle.co.uk | hohle.de | hohle.info