How can i make my shell prompt read:

<pwd>$                 <time of day>
link|improve this question

80% accept rate
feedback

1 Answer

up vote 2 down vote accepted

Put something like this in your .bashrc or .bash_profile (changed from yours, as I wasn't sure how that would make sense!)

export PS1="\t \w $ "

Personally, I use:

export PS1="\t@\d  ─────────────────────────────────────────────────────────────────────────────────────────────\n│ \w \n└─> "

That might give you a hand getting things to look right.

Once you've added it to your .bashrc file, remember to run source ~/.bashrc to make it work.

link|improve this answer
Rich - very cool man! Now i am using it too :) – JAM May 14 '11 at 22:48
I think it's much nicer than the default! – Rich Bradshaw May 14 '11 at 22:50
100%. No doubt! – JAM May 14 '11 at 22:51
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.