2

How can i make my shell prompt read:

<pwd>$                 <time of day>
2

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.

  • 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

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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