From d30873798a4fa207069bf8e9c8ba8a0c24bd940a Mon Sep 17 00:00:00 2001 From: John Southworth Date: Fri, 9 Dec 2011 12:20:44 -0800 Subject: Fix default completions for configuration mode --- etc/bash_completion.d/vyatta-cfg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc') 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 -- cgit v1.2.3