[olug] What's the value of your $PS1 variable?
Christopher Cashell
topher-olug at zyp.org
Thu Jan 22 17:47:21 UTC 2009
On Thu, Jan 22, 2009 at 11:02 AM, Adam Haeder <adamh at aiminstitute.org> wrote:
> or, what does your prompt look like?
I use:
GREEN="\[\e[32;1m\]"
DGRAY="\[\e[1;30m\]"
VIOLET="\[\e[0;35m\]"
BWHITE="\[\e[1;37m\]"
DCOLOR="\[\e[m\]"
PS1="$GREEN\u$DGRAY@$GREEN\h:$VIOLET\w$BWHITE\$ $DCOLOR"
Which gives me:
if $PWD==$HOME: cpcashell at crucible:~$
and
if $PWD==/tmp: cpcashell at crucible:/tmp$
Except it's also colored. I originally had the color codes inline,
but it was a pain to remember what color was what and where, so I
changed it to the above.
> --
> Adam Haeder
--
Christopher
More information about the OLUG
mailing list