From 29d0ba559452918df62fba440ff4b854a9f9632d Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 31 Mar 2015 22:14:52 +0200 Subject: Don't try to autocomplete incorrect commands. --- cli/bash-completion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli') diff --git a/cli/bash-completion.sh b/cli/bash-completion.sh index 5ae1c63..f3175b9 100644 --- a/cli/bash-completion.sh +++ b/cli/bash-completion.sh @@ -21,7 +21,7 @@ _icevault() { COMPREPLY=() declare -a files - local cmd firstopt=2 opts nargs + local cmd firstopt=2 opts nargs=0 if [ $cword -eq 1 -a -z "$cur" ] || [[ "${words[1]}" =~ :// ]] || [[ "${words[1]}" =~ ^- ]]; then firstopt=1 cmd=fill # default command -- cgit v1.2.3