From 510bd206970da7a8d5764f5465856952d11d6a73 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 24 Oct 2008 09:56:09 -0700 Subject: Expand shell history Bugfix 250 Collect more shell history and force append Note: this overrides default setting of HISTCONTROL in .bashrc --- etc/bash_completion.d/20vyatta-cfg | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'etc/bash_completion.d/20vyatta-cfg') 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 -- cgit v1.2.3