From a7e7e6ca9e8fc48326d28de2c9f1395002126326 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 30 Oct 2008 15:10:00 -0700 Subject: Set history timestamp at start of shell For Bug 250, need to get timestamp from start of shell. Otherwise, all commands show up as now --- etc/bash_completion.d/20vyatta-cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg index 2ce3a22..369ef7a 100755 --- a/etc/bash_completion.d/20vyatta-cfg +++ b/etc/bash_completion.d/20vyatta-cfg @@ -26,7 +26,9 @@ export HISTCONTROL= export HISTFILESIZE=10000 export HISTSIZE=10000 +export HISTTIMEFORMAT='%FT%T%z ' export PROMPT_COMMAND='history -a' +builtin set histappend=1 # only do this if we are going into configure mode if [ "$_OFR_CONFIGURE" != "ok" ]; then -- cgit v1.2.3