]> git.immae.eu Git - perso/Immae/Config/Ansible.git/commitdiff
Add bash history file timestamp
authorIsmaël Bouya <ismael.bouya@fretlink.com>
Sun, 18 Nov 2018 12:44:56 +0000 (13:44 +0100)
committerIsmaël Bouya <ismael.bouya@fretlink.com>
Sun, 18 Nov 2018 12:44:56 +0000 (13:44 +0100)
roles/shell/bash/templates/bashrc.j2

index b717f0ed66e237f41fc7b6d6d54ab848559b5d80..91311e5eb8060276f668f48d138c6f83f3f74782 100644 (file)
@@ -13,6 +13,8 @@ fi
 
 export GPG_TTY=$(tty)
 export HISTFILE="$XDG_STATE_HOME/bash/history"
+export HISTTIMEFORMAT='%F %T '
+export HISTCONTROL="ignorespace:ignoredups"
 
 alias vi=vim
 alias ls='ls --color=auto -F -T 0'