[GRLUG] Custom $PS1 settings

john-thomas richards jtr at jrichards.org
Wed May 16 08:05:42 EDT 2007


On Tue, May 15, 2007 at 10:57:13PM -0400, Michael Mol wrote:
> 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?

I have not tweaked my prompt, but I like the idea of adding the date to
it.

Now I want to figure out how to change my prompt to be like this:

C:\>
-- 
john-thomas
------
As far as I'm concerned, 'whom' is a word that was invented to make
everyone sound like a butler.
Calvin Trillin, writer (1935- )


More information about the grlug mailing list