3 ms·
> timestamp() {...etc...} I prefer that info to be in my PS1. PS1="\[\e[0;36m\[\e[m\] \[\e[0;36m\][\w]\[\e[m\]\n\t \u@\h \[\e[0;36m\]\$ \[\033[0m\]" Double
by UI_at_80x24 3y ago
> timestamp() {...etc...}
I prefer that info to be in my PS1.
PS1="\[\e[0;36m\[\e[m\] \[\e[0;36m\][\w]\[\e[m\]\n\t
\u@\h \[\e[0;36m\]\$ \[\033[0m\]"
Double-tapping Enter before I run a command where I'll want to know the time I launched it as, solves the "when did I launch this?" question.
Example output:
[~]
10:22:16 username@hostname $