diff options
Diffstat (limited to 'completions/wine')
-rw-r--r-- | completions/wine | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/completions/wine b/completions/wine index 429fede..239f44b 100644 --- a/completions/wine +++ b/completions/wine @@ -1,20 +1,26 @@ # bash completion for wine(1) -*- shell-script -*- -_wine() +_comp_cmd_wine() { - local cur prev words cword - _init_completion || return + local cur prev words cword comp_args + _comp_initialize -- "$@" || return + + case $prev in + --help | --version) + return + ;; + esac if ((cword == 1)); then if [[ $cur == -* ]]; then - COMPREPLY=($(compgen -W '--help --version' -- "$cur")) + _comp_compgen -- -W '--help --version' [[ ${COMPREPLY-} ]] && return fi - _filedir '@([eE][xX][eE]?(.[sS][oO])|[cC][oO][mM]|[sS][cC][rR]|[mM][sS][iI])' + _comp_compgen_filedir '@([eE][xX][eE]?(.[sS][oO])|[cC][oO][mM]|[sS][cC][rR]|[mM][sS][iI])' else - _filedir + _comp_compgen_filedir fi } && - complete -F _wine wine wine-development wine-stable + complete -F _comp_cmd_wine wine{,64}{,-development,-stable} # ex: filetype=sh |