diff options
Diffstat (limited to 'etc/bash_completion.d/vyatta-op')
-rw-r--r-- | etc/bash_completion.d/vyatta-op | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op index 83b2050..22353e1 100644 --- a/etc/bash_completion.d/vyatta-op +++ b/etc/bash_completion.d/vyatta-op @@ -101,7 +101,8 @@ _vyatta_op_debug () _vyatta_op_default_expand () { local wc=${#COMP_WORDS[@]} - if (( wc < 2 )); then + if (( wc < 2 )) || + [[ $COMP_CWORD -eq 0 ]]; then _vyatta_op_expand else # after the first word => cannot be vyatta command so use original default |