Add timestamp to bash history.
This commit is contained in:
parent
c8ffc3b746
commit
a8b39be7c7
3
.bashrc
3
.bashrc
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue