Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jan 2002 23:35:17 -0500 
From:      "Oliver, Michael W." <oliver.michael@gargantuan.com>
To:        freebsd-questions@freebsd.org
Subject:   RE: Shell prompt contest
Message-ID:  <1DA741CA6767A144BAA4F10012536C27A984@LKLDDC01.GARGANTUAN.COM>

next in thread | raw e-mail | index | archive | help
I am not at the console much, so colors don't work for me too well.
However, a LF does make things nice a neat.  Here is what I use in BASH:


PS1="
\u @ \h  |  \w
# "

PS2="
\u @ \h  |  \w
PS2> "



Example:

root @ wolverine  |  /usr/local/etc/apache
#


This gives me a nice LF after any previous output, plenty of space on the
line to PWD, and another LF for the next command.  Not fancy, but gets the
job done....

===========
Michael Oliver





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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