Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can i make my shell prompt read:

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

1 Answer 1

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.

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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