From 249aa3187108af883344c635564145c27961c167 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(-) 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