diff options
-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 |