On Wed, Sep 13, 2000 at 11:57:20PM +0200, Julio Merino ([EMAIL PROTECTED]) 
wrote:
> Hi all,
> 
> NOTE that this is OFFTOPIC.
> 
> would you like to recognize fastly if you're a normal user or root?
> Change the default debian PS1 to something like this for your user:
> 
>     PS1='\[\e[22m\e[40m\e[32m\]\h:\w\$\[\e[22m\e[40m\e[37m\] '
> 
> and for the user root change the 32 to 31.

From my root .bashrc:

    # Following sets prompt to [EMAIL PROTECTED] dir], and puts the full 
    #   [EMAIL PROTECTED]:/full/path/spec in an xterm title bar.
    function proml
    {
    case $TERM in
        xterm*|rxvt|eterm|wterm)
            local TITLEBAR='\[\033]0;[EMAIL PROTECTED]:\w\007\]'
            ;;
        *)
            local TITLEBAR=''
            ;;
    esac

    PS1="${TITLEBAR}\
    [EMAIL PROTECTED]:\W]\
    \$ "
    PS2='> '
    PS4='+ '
    }

    proml
    unset proml
    export PS1


For a nonprivileged user, I replace PS1 above with:

    PS1="${TITLEBAR}\
    [EMAIL PROTECTED]:\W]\
    \$ "

-- 
Karsten M. Self <kmself@ix.netcom.com>     http://www.netcom.com/~kmself
 Evangelist, Opensales, Inc.                    http://www.opensales.org
  What part of "Gestalt" don't you understand?   Debian GNU/Linux rocks!
   http://gestalt-system.sourceforge.net/    K5: http://www.kuro5hin.org
GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0

Attachment: pgpN4OhZ6kwv7.pgp
Description: PGP signature

Reply via email to