On Wed, Sep 13, 2000 at 11:57:20PM +0200, Julio Merino (jmmv@mail.com) 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 [userid@host dir], and puts the full # user@host:/full/path/spec in an xterm title bar. function proml { case $TERM in xterm*|rxvt|eterm|wterm) local TITLEBAR='\[\033]0;\u@\h:\w\007\]' ;; *) local TITLEBAR='' ;; esac PS1="${TITLEBAR}\ [\[\033[7m\]\u\[\033[0m\]@\h:\W]\ \$ " PS2='> ' PS4='+ ' } proml unset proml export PS1 For a nonprivileged user, I replace PS1 above with: PS1="${TITLEBAR}\ [\u@\h:\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:
pgpLVtJeTvIHR.pgp
Description: PGP signature