diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-10-24 09:56:09 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-10-24 09:56:09 -0700 |
commit | 510bd206970da7a8d5764f5465856952d11d6a73 (patch) | |
tree | c9fca370f091ec16c438cca5cb73beb56c74c0c2 /etc/bash_completion.d | |
parent | 14f7589a6b1cdebd453aba87948c7edf785aadc1 (diff) | |
download | vyatta-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/bash_completion.d')
-rwxr-xr-x | etc/bash_completion.d/20vyatta-cfg | 6 |
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 |