diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2020-08-03 18:43:13 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2020-08-03 18:43:13 -0300 |
commit | 95623d39d6029ba78ec96ad5ea08e9ac12629b91 (patch) | |
tree | ea0fe36eb5e6f40e0a1f765d44c4b0c0b2bfb089 /completions/perltidy | |
parent | 019f3cc463db63abc6460f97deb488deec43840b (diff) | |
download | bash-completion-95623d39d6029ba78ec96ad5ea08e9ac12629b91.tar.gz |
New upstream version 2.11upstream/2.11upstream
Diffstat (limited to 'completions/perltidy')
-rw-r--r-- | completions/perltidy | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/completions/perltidy b/completions/perltidy index 91bd5094..4404cf80 100644 --- a/completions/perltidy +++ b/completions/perltidy @@ -6,7 +6,7 @@ _perltidy() _init_completion -n = || return case $prev in - -h|--help) + -h | --help) return ;; -o) @@ -22,20 +22,20 @@ _perltidy() return ;; -ole=*) - COMPREPLY=( $(compgen -W 'dos win mac unix' -- "${cur#*=}") ) + COMPREPLY=($(compgen -W 'dos win mac unix' -- "${cur#*=}")) return ;; - -bt=*|-pt=*|-sbt=*|-bvt=*|-pvt=*|-sbvt=*|-bvtc=*|-pvtc=*|-sbvtc=*|\ - -cti=*|-kbl=*|-vt=*) - COMPREPLY=( $(compgen -W '0 1 2' -- "${cur#*=}") ) + -bt=* | -pt=* | -sbt=* | -bvt=* | -pvt=* | -sbvt=* | -bvtc=* | -pvtc=* | -sbvtc=* | \ + -cti=* | -kbl=* | -vt=*) + COMPREPLY=($(compgen -W '0 1 2' -- "${cur#*=}")) return ;; -vtc=*) - COMPREPLY=( $(compgen -W '0 1' -- "${cur#*=}") ) + COMPREPLY=($(compgen -W '0 1' -- "${cur#*=}")) return ;; -cab=*) - COMPREPLY=( $(compgen -W '0 1 2 3' -- "${cur#*=}") ) + COMPREPLY=($(compgen -W '0 1 2 3' -- "${cur#*=}")) return ;; -*=) @@ -44,12 +44,12 @@ _perltidy() esac if [[ $cur == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") ) - [[ $COMPREPLY == *= ]] && compopt -o nospace + COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) + [[ ${COMPREPLY-} == *= ]] && compopt -o nospace else _filedir 'p[lm]|t' fi } && -complete -F _perltidy perltidy + complete -F _perltidy perltidy # ex: filetype=sh |