Add color to iTerm and terminal on OS X Lion

1. Add the following to your .bash_profile:

# Enables color in the terminal bash shell export
CLICOLOR=1
# Sets up the color scheme for list export
LSCOLORS=gxfxcxdxbxegedabagacad
# Sets up the prompt color (currently a green similar to linux terminal)
export PS1=’\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ ‘
# Enables color for iTerm
export TERM=xterm-color
# Sets up proper alias commands when called
alias ls=’ls -G’
alias ll=’ls -hl’

2. Reload your profile with "source ~/.bash_profile"

3. That’s it!

Leave a Reply

Your email address will not be published. Required fields are marked *