Ben Ruset Sysadmin, etc.

18Sep/090

Linux-like bash prompt in OSX

For those of us who use bash on our MacOSX boxes as well as Linux (at least RedHat systems) and are annoyed that OSX's bash prompt doesn't look like Linux's, adding these lines to your .profile will fix it. This will enable color for ls as well as change the actual prompt to match RHEL's.

Add these lines to the top of your .profile:

export PS1="[\u@\h \W]$"
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad

Tagged as: No Comments