diff options
-rw-r--r-- | etc/bash_completion.d/10vyatta-op | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/etc/bash_completion.d/10vyatta-op b/etc/bash_completion.d/10vyatta-op index c69c40f..6336038 100644 --- a/etc/bash_completion.d/10vyatta-op +++ b/etc/bash_completion.d/10vyatta-op @@ -36,11 +36,14 @@ declare -x VYATTA_PAGER=$_vyatta_default_pager _vyatta_op_do_key_bindings () { - if [ "$SHELL" == "/bin/vbash" ]; then - # only do this if vbash - bind '"?": possible-completions' + if [ "$SHELL" != "/bin/vbash" ]; then + # only do bindings if vbash + return fi + bind '"?": possible-completions' + bind 'set show-all-if-ambiguous on' + nullglob_save=$(shopt -p nullglob) shopt -u nullglob bind_cmds=$(grep '^bind .* # vyatta key binding$' $HOME/.bashrc) @@ -85,7 +88,6 @@ _vyatta_op_init () fi done - bind 'set show-all-if-ambiguous on' shopt -s histverify } |