# bash completion for wine(1) -*- shell-script -*- proc _wine { local cur prev words cword _init_completion || return if [[ $cword -eq 1 ]] { if [[ "$cur" == -* ]] { setglobal COMPREPLY = ''( $( compgen -W '--help --version' -- "$cur" ) ) [[ $COMPREPLY ]] && return } _filedir '@([eE][xX][eE]?(.[sS][oO])|[cC][oO][mM]|[sS][cC][rR]|[mM][sS][iI])' } else { _filedir } } && complete -F _wine wine # ex: ts=4 sw=4 et filetype=sh