From: kevin lyda (kevin at domain suberic.net)
Date: Mon 06 Sep 1999 - 11:51:12 IST
"Breathnach, Proinnsias(Dublin)" spoke thusly:
>Is there a (fairly easy) way to add colour to the prompt in both colour
>xterms (and the Gnome Xterm) and on the Console.
>I'd like root to have a red prompt while I'm either logged on as root at the
>console or su'd in an xterm. This'll help stop me doing Stoopid Stuff(TM)
>like at the weekend (we won't go into it here...) again.
if you use su, always use su - to log in as root - that way root's
.bashrc gets sourced.
then add this to root's .bashrc:
export PS1='\[\033[31m\][\u at domain \h \W]\$\[\033[m\] '
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:32 GMT