2

How can i make my shell prompt read:

<pwd>$                 <time of day>
wonea
  • 1,817
  • 1
  • 23
  • 42
JAM
  • 439
  • 2
  • 6
  • 11

1 Answers1

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 Bradshaw
  • 6,416
  • 3
  • 31
  • 43