[GRLUG] Custom $PS1 settings

Michael Mol mikemol at gmail.com
Tue May 15 22:57:13 EDT 2007


Like, I suspect, many people, I have custom settings for PS1 in my
~/.bashrc file:

PS1="\u@\H\w\n\t \$ "

This give me a conventient prompt:

shortcircuit at caterpillar~
22:53:34 $

I see my username, the name of the machine I'm logged into, my path,
the current time, and whether or not I'm logged in as root.

In the past, I've had prompts which executed scripts that displayed an
indicator to tell me whether or not certain accounts were logged in.

What do you use for a prompt?  What's the most unique prompt you've ever used?
-- 
:wq


More information about the grlug mailing list