changing prompt for super user

Raul A. Gallegos raul at
Thu Dec 6 13:51:32 EST 2001

Try this.

if [ "$BASH" ]; then
  PS1='\u@\h:\w\$ '
  if [ "`id -u`" -eq 0 ]; then
    PS1='# '
    PS1='$ '

That should do it.  Just modify the correct prompt for root and make it
what you want.

If you want to read the bashprompt-HOWTO is a good document

Only wimps use tape backup: _real_ men just upload their important
stuff on ftp, and let the rest of the world mirror it ;)
        -- Linus Torvalds, about his failing hard drive on
-- Raul A. Gallegos mailto:raul at -

More information about the Speakup mailing list