On Wed, 18 May 2005 06:26:53 -0400 (Eastern Standard Time)
Gerard Seibert <[EMAIL PROTECTED]> wrote:

> PS1="[EMAIL PROTECTED] \w "
> case 'id -u' in
>       0) PS1="${PS1}# ";;
>       *) PS1="${PS1}$ ";;
> esac
--- cut ---
> It is suppose to set the prompt to display the '[EMAIL PROTECTED]' and the 
> working 
> directory with a '#' for root and '$' for user. Everything works except 
> for the '#' and '$' symbols. The '$' symbol is always displayed.

this is what i use :

case $UID in
                0) PS1="\[\033[1;31m\][ [EMAIL PROTECTED]:\w] #\[\033[0m\] ";;
                *) PS1="\[\033[2;36m\][ [EMAIL PROTECTED]:\w] $\[\033[0m\] ";;
        esac

you could use this and remove the colours if you like

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to