[olug] What's the value of your $PS1 variable?

Dave Pfister dave.pfister at gmail.com
Thu Jan 22 21:22:15 UTC 2009


My tcsh prompt is:

set prompt="%{\033[0;32m%}%B%n%b($SHLVL)%B@%m%b:%c3%# "

effective prompt:

dave(1)@farnsworth:~>

pretty standard; with a few tweaks; username portion (%n) coloration varies
based on which machine I'm on, red username for hosts I have to be careful
about changes on (prod boxes), green for dev/test hosts.  I used to do this
based on EUID back in the day (root vs userland).  I'm not a fan of
timestamps in prompts (that's what history is for!) or history event numbers
(same reason).  I put PTY info and full path into the window title for quick
reference if I ever need it, but try and keep the prompt as clean & simple
as possible.

-- 
"The empires of the future are the empires of the mind."
 - Winston Churchill



More information about the OLUG mailing list