Greetings. I recently began toying around with my bash prompt and color,
going from the information found here:
http://www2.linuxjournal.com/lj-issues/issue64/3215.html
I would like to edit /etc/bashrc in such a way that root's bash prompt showed
up as bright red, while my user accounts would be a light cyan.
Nevermind, mission accomplished.
under /etc/profile, I changed
#PS1="[\u@\h \W]\\$ "
PS1="\[\033[1;36m\][\u@\h \w]\\$\[\033[0;37m\] "
and under /root/.bashrc, I added
PS1="\[\033[1;31m\][\u@\h \w]\\$\[\033[0;37m\] "
This seems to work so far.
Can anyone think of a more elegant way to do this?
Could this be considered to be added to Mandrake?
Jason Marsh