W liście z nie, 12-09-2004, godz. 15:56, Eric Huff pisze: 
> You can change the color of the prompt itself.  I put this into my
> .bashrc for root:
> 
> if test "$(tty | grep -c /dev/pts/)" != "0" ; then    # if in X11
>     PS1="\[\033]0;ROOT IN \W\007\]\[\033[31m\]ROOT in \W * "
> else  # if in text mode, there is no title
>     PS1="\[\033[31m\]ROOT in \W * "
> fi
> 
> 
> This way the prompt shows up red and has ROOT in it.
> 
> I use another color if i am ssh'd into my user account on the 2nd
> machine.

That's a good one.
Thanks!!
-- 
Cezary 'Thereidos' Morga <[EMAIL PROTECTED]>
Registered Linux User No. 362185 <http://counter.li.org>
GG# 169903 ICQ# 328-700-565 Jabber: [EMAIL PROTECTED]


____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to