Archive for August, 2008
Monthly Archive
Thursday, August 7th, 2008
Timestamps in Bash History
I spent years wondering why there aren’t timestamps in the bash history file, and why there’s no obvious way to add them as they would be so fundamentally useful.
Turns out there is a nice easy way to do it after all:
Set HISTTIMEFORMAT to some suitable string in your .bashrc, ie “%F %T”, this puts a [...]