Date Tags bash

If you add this line to the end of your .bashrc file, you will get the date and the time showing in your prompt -

PS1="[\u:\d \t @\w]$>; "

And if you add this ... [\!] ...onto the end of that line like this;-

PS1="[\u:\d \t @\w]$ [\!]>; "

you get a number which is the line number of your history file.



Comments

comments powered by Disqus