summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-30 15:10:00 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-30 15:10:00 -0700
commita7e7e6ca9e8fc48326d28de2c9f1395002126326 (patch)
treebe271db2838af279afc17362bb284be5a6505863 /etc
parent028a05903c69ab9b6d1e8a22791ccc9fd381e244 (diff)
downloadvyatta-cfg-a7e7e6ca9e8fc48326d28de2c9f1395002126326.tar.gz
vyatta-cfg-a7e7e6ca9e8fc48326d28de2c9f1395002126326.zip
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
Diffstat (limited to 'etc')
-rwxr-xr-xetc/bash_completion.d/20vyatta-cfg2
1 files changed, 2 insertions, 0 deletions
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