2

How can i make my shell prompt read:

<pwd>$                 <time of day>

1 Answer 1

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.

3
  • Rich - very cool man! Now i am using it too :)
    – JAM
    May 14, 2011 at 22:48
  • I think it's much nicer than the default! May 14, 2011 at 22:50
  • 100%. No doubt!
    – JAM
    May 14, 2011 at 22:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .