From: Ismaƫl Bouya Date: Sun, 18 Nov 2018 12:44:56 +0000 (+0100) Subject: Add bash history file timestamp X-Git-Tag: v1.0~7 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=dd308b2f8fdd6cfb2aec4778c347a7d156a0d754;p=perso%2FImmae%2FConfig%2FAnsible.git Add bash history file timestamp --- diff --git a/roles/shell/bash/templates/bashrc.j2 b/roles/shell/bash/templates/bashrc.j2 index b717f0e..91311e5 100644 --- a/roles/shell/bash/templates/bashrc.j2 +++ b/roles/shell/bash/templates/bashrc.j2 @@ -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'