From dd308b2f8fdd6cfb2aec4778c347a7d156a0d754 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 18 Nov 2018 13:44:56 +0100 Subject: [PATCH] Add bash history file timestamp --- roles/shell/bash/templates/bashrc.j2 | 2 ++ 1 file changed, 2 insertions(+) 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' -- 2.41.0