summaryrefslogtreecommitdiff
path: root/completions/autoscan
diff options
context:
space:
mode:
Diffstat (limited to 'completions/autoscan')
-rw-r--r--completions/autoscan12
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/autoscan b/completions/autoscan
index 5f70a508..e0071437 100644
--- a/completions/autoscan
+++ b/completions/autoscan
@@ -6,10 +6,10 @@ _autoscan()
_init_completion -s || return
case "$prev" in
- --help|--version|-!(-*)[hV])
+ --help | --version | -!(-*)[hV])
return
;;
- --prepend-include|--include|-!(-*)[BI])
+ --prepend-include | --include | -!(-*)[BI])
_filedir -d
return
;;
@@ -17,9 +17,9 @@ _autoscan()
$split && return
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
- [[ $COMPREPLY == *= ]] && compopt -o nospace
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
+ [[ ${COMPREPLY-} == *= ]] && compopt -o nospace
return
fi
@@ -29,6 +29,6 @@ _autoscan()
_filedir -d
fi
} &&
-complete -F _autoscan autoscan autoupdate
+ complete -F _autoscan autoscan autoupdate
# ex: filetype=sh