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