Set HISTTIMEFORMAT to force Bash to store timestamp.
--- 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