diff options
Diffstat (limited to 'completions/autoconf')
-rw-r--r-- | completions/autoconf | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/completions/autoconf b/completions/autoconf index 94a014ff..b51e797e 100644 --- a/completions/autoconf +++ b/completions/autoconf @@ -6,20 +6,20 @@ _autoconf() _init_completion -s || return case "$prev" in - --help|-h|--version|-V|--trace|-t) + --help | -h | --version | -V | --trace | -t) return ;; - --output|-o) + --output | -o) _filedir return ;; - --warnings|-W) - local cats=( cross obsolete syntax ) - COMPREPLY=( $(compgen -W \ - '${cats[@]} ${cats[@]/#/no-} all none error' -- "$cur") ) + --warnings | -W) + local cats=(cross obsolete syntax) + COMPREPLY=($(compgen -W \ + '${cats[@]} ${cats[@]/#/no-} all none error' -- "$cur")) return ;; - --prepend-include|-B|--include|-I) + --prepend-include | -B | --include | -I) _filedir -d return ;; @@ -27,14 +27,14 @@ _autoconf() $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 _filedir '@(ac|in)' } && -complete -F _autoconf autoconf + complete -F _autoconf autoconf # ex: filetype=sh |