Add timestamp to bash history.

This commit is contained in:
Scott Wallace 2017-09-04 10:41:47 +01:00
parent c8ffc3b746
commit a8b39be7c7

View file

@ -105,6 +105,9 @@ export HISTFILESIZE=
# Avoid duplicates in the history... # Avoid duplicates in the history...
export HISTCONTROL=ignoreboth export HISTCONTROL=ignoreboth
# Record the timestamp in the bash history
export HISTTIMEFORMAT="%Y-%m-%d %T "
# Append history entries... # Append history entries...
shopt -s histappend shopt -s histappend