Set HISTTIMEFORMAT to force Bash to store timestamp.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 08 Jul 2012 15:19:43 +0300
changeset 482 3860547a5594
parent 481 9b1b0a64635b
child 483 f02dbcb71260
Set HISTTIMEFORMAT to force Bash to store timestamp.
.bashrc
--- a/.bashrc	Sun Jul 08 14:13:05 2012 +0300
+++ b/.bashrc	Sun Jul 08 15:19:43 2012 +0300
@@ -22,6 +22,9 @@
   eval "`dircolors -b ~/.dircolors`"
 fi
 
+# Can be XXX /visible. I like bell.
+# set bell-style visible
+
 # Don't store duplicate adjacent items in the history.
 #   ignorespace     do not save lines that start with space
 #   erasedups       all previous lines matching the current line to be removed from
@@ -41,8 +44,7 @@
 # HISTFILESIZE=500          # how many lines been in $HISTFILE
 # HISTSIZE=500              # how many lines been stored in bash process
 
-# Can be XXX /visible. I like bell.
-# set bell-style visible
+HISTTIMEFORMAT="%F %T "
 
 # Make Bash append rather than overwrite the history.
 shopt -s histappend