aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-03-31 22:14:52 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-03-31 22:14:52 +0200
commit249aa3187108af883344c635564145c27961c167 (patch)
tree7fef728d62b2cc5d998356cbb1229aa31e28680c
parent020ac04b7f743b707538fd40ae85ee862cdc31ec (diff)
Don't try to autocomplete incorrect commands.
-rw-r--r--cli/bash-completion.sh2
1 files changed, 1 insertions, 1 deletions
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