summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-24 09:56:09 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-24 09:56:09 -0700
commit510bd206970da7a8d5764f5465856952d11d6a73 (patch)
treec9fca370f091ec16c438cca5cb73beb56c74c0c2 /etc
parent14f7589a6b1cdebd453aba87948c7edf785aadc1 (diff)
downloadvyatta-cfg-510bd206970da7a8d5764f5465856952d11d6a73.tar.gz
vyatta-cfg-510bd206970da7a8d5764f5465856952d11d6a73.zip
Expand shell history
Bugfix 250 Collect more shell history and force append Note: this overrides default setting of HISTCONTROL in .bashrc
Diffstat (limited to 'etc')
-rwxr-xr-xetc/bash_completion.d/20vyatta-cfg6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg
index 0233e99..2ce3a22 100755
--- a/etc/bash_completion.d/20vyatta-cfg
+++ b/etc/bash_completion.d/20vyatta-cfg
@@ -22,6 +22,12 @@
#
# **** End License ****
+# Turn on history logging
+export HISTCONTROL=
+export HISTFILESIZE=10000
+export HISTSIZE=10000
+export PROMPT_COMMAND='history -a'
+
# only do this if we are going into configure mode
if [ "$_OFR_CONFIGURE" != "ok" ]; then
return 0