summaryrefslogtreecommitdiff
path: root/completions/asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'completions/asciidoc')
-rw-r--r--completions/asciidoc26
1 files changed, 13 insertions, 13 deletions
diff --git a/completions/asciidoc b/completions/asciidoc
index 2ddcdfe9..1ea4abf2 100644
--- a/completions/asciidoc
+++ b/completions/asciidoc
@@ -2,7 +2,7 @@
_asciidoc_doctype()
{
- COMPREPLY+=( $(compgen -W 'article book manpage' -- "$cur") )
+ COMPREPLY+=($(compgen -W 'article book manpage' -- "$cur"))
}
_asciidoc()
@@ -11,26 +11,26 @@ _asciidoc()
_init_completion -s || return
case $prev in
- --attribute|-!(-*)a)
+ --attribute | -!(-*)a)
return
;;
- --backend|-!(-*)b)
- COMPREPLY=( $(compgen -W 'docbook html4 xhtml11' -- "$cur") )
+ --backend | -!(-*)b)
+ COMPREPLY=($(compgen -W 'docbook html4 xhtml11' -- "$cur"))
return
;;
- --conf-file|-!(-*)f)
+ --conf-file | -!(-*)f)
_filedir conf
return
;;
- --doctype|-!(-*)d)
+ --doctype | -!(-*)d)
_asciidoc_doctype
return
;;
- --help|-!(-*)h)
- COMPREPLY=( $(compgen -W 'manpage syntax topics' -- "$cur") )
+ --help | -!(-*)h)
+ COMPREPLY=($(compgen -W 'manpage syntax topics' -- "$cur"))
return
;;
- --out-file|-!(-*)o)
+ --out-file | -!(-*)o)
_filedir
return
;;
@@ -39,14 +39,14 @@ _asciidoc()
$split && return
if [[ $cur == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1" "--help manpage")' \
- -- "$cur") )
- [[ $COMPREPLY == *= ]] && compopt -o nospace
+ COMPREPLY=($(compgen -W '$(_parse_help "$1" "--help manpage")' \
+ -- "$cur"))
+ [[ ${COMPREPLY-} == *= ]] && compopt -o nospace
return
fi
_filedir
} &&
-complete -F _asciidoc asciidoc asciidoc.py
+ complete -F _asciidoc asciidoc asciidoc.py
# ex: filetype=sh