18th January 2007, 2 min read Color terminal under Mac OS X 4 thoughts on “Color terminal under Mac OS X” Peter Turney says: January 18, 2007 at 5:00 pm FYI, here is my PS1: export PS1=”[[e[33m]u@H [e[32m]w[e[0m]]n[[e[31m]![e[0m]] > ” phil says: January 20, 2007 at 12:26 am I’m pretty sure that in the normal course of events, bash reads your .bash_profile on login. Most .bash_profile files then source the .bashrc Ex .bash_profile: # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi whiteknight says: March 26, 2007 at 9:28 am login shells read .bash_profile non login shells read .bashrc Seth says: February 22, 2009 at 11:31 am This worked perfectly! Thank you very much for the clear write-up and great color scheme.
FYI, here is my PS1:
export PS1=”[[e[33m]u@H [e[32m]w[e[0m]]n[[e[31m]![e[0m]] > ”
I’m pretty sure that in the normal course of events, bash reads your .bash_profile on login. Most .bash_profile files then source the .bashrc
Ex .bash_profile:
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
login shells read .bash_profile
non login shells read .bashrc
This worked perfectly! Thank you very much for the clear write-up and great color scheme.