summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-12-09 12:20:44 -0800
committerJohn Southworth <john.southworth@vyatta.com>2011-12-09 12:21:17 -0800
commitd30873798a4fa207069bf8e9c8ba8a0c24bd940a (patch)
treeadf9ab14313d3182147bcdd4d2436bcebb0aaab1 /etc
parent61d48d617ee42c727aba5b54d873475a2c7fb113 (diff)
downloadvyatta-cfg-d30873798a4fa207069bf8e9c8ba8a0c24bd940a.tar.gz
vyatta-cfg-d30873798a4fa207069bf8e9c8ba8a0c24bd940a.zip
Fix default completions for configuration mode
Diffstat (limited to 'etc')
-rwxr-xr-xetc/bash_completion.d/vyatta-cfg3
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