From a8b39be7c7dc68e45fcff355c4b540dfaa90abb9 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Mon, 4 Sep 2017 10:41:47 +0100 Subject: [PATCH] Add timestamp to bash history. --- .bashrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bashrc b/.bashrc index b1fe817..93c63bf 100755 --- a/.bashrc +++ b/.bashrc @@ -105,6 +105,9 @@ export HISTFILESIZE= # Avoid duplicates in the history... export HISTCONTROL=ignoreboth +# Record the timestamp in the bash history +export HISTTIMEFORMAT="%Y-%m-%d %T " + # Append history entries... shopt -s histappend