[colug-432] Search Command History
Rob Funk
rfunk at funknet.net
Tue Feb 11 16:11:21 EST 2014
Tim Randles wrote:
> One aspect of history that I find useful is timestamps. On Red Hat-based
> distros (CentOS, fedora, RHEL, SLC...) bash history timestamps are disabled
> by default. I can't speak for other shells and distros. To enable them
> export the environment variable HISTTIMEFORMAT in your .bash_profile.
>
> export HISTTIMEFORMAT="%F %T "
No need for "export" on shell variables like this. export is for
making it an environment variable that gets passed from process to
process.
But yes, HISTTIMEFORMAT is really handy and should have been a default.
More information about the colug-432
mailing list