diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-03-31 22:14:52 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-03-31 22:15:39 +0200 |
commit | 29d0ba559452918df62fba440ff4b854a9f9632d (patch) | |
tree | 4682142b24d955144970cae7156f10bb2d04ce59 | |
parent | c4927a459b2d091641813db1a420bdafaff3b391 (diff) |
Don't try to autocomplete incorrect commands.
-rw-r--r-- | cli/bash-completion.sh | 2 |
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 |