Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Feb 2004 17:13:13 +0100
From:      Didier WIROTH <didier.wiroth@mcesr.etat.lu>
To:        freebsd-questions@freebsd.org
Subject:   RE: customize set prompt question
Message-ID:  <0HSG00DROT22DT@mail.etat.lu>
In-Reply-To: <401E673B.6030201@lumeta.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Many thanks to all of you for your help!!!! 

For those who want to know:
Customizing the prompt for root (with a red prompt) is:
set prompt="%{\e[1;31m%}@%m:%~# %{\e[m%}"

As you might notice for csh you have to replace the \[ \] with %{ %}



> > 
> > $ export PS1="\[\e[1;31m\]@%m:%~# \[\e[m\]"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0HSG00DROT22DT>