diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-12-09 12:20:44 -0800 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-12-09 12:21:17 -0800 |
commit | d30873798a4fa207069bf8e9c8ba8a0c24bd940a (patch) | |
tree | adf9ab14313d3182147bcdd4d2436bcebb0aaab1 /etc | |
parent | 61d48d617ee42c727aba5b54d873475a2c7fb113 (diff) | |
download | vyatta-cfg-d30873798a4fa207069bf8e9c8ba8a0c24bd940a.tar.gz vyatta-cfg-d30873798a4fa207069bf8e9c8ba8a0c24bd940a.zip |
Fix default completions for configuration mode
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/bash_completion.d/vyatta-cfg | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg index f9736fa..a32b8eb 100755 --- a/etc/bash_completion.d/vyatta-cfg +++ b/etc/bash_completion.d/vyatta-cfg @@ -1011,7 +1011,8 @@ vyatta_config_default_complete () { local wc=${#COMP_WORDS[@]} if (( wc < 2 )) || - [[ $COMP_CWORD -eq 0 ]]; then + [[ $COMP_CWORD -eq 0 ]] || + [[ $1 == $2 ]]; then vyatta_config_complete "$@" else # after the first word => cannot be vyatta command so use original default |