2011-11-17 18:35:49 +03:00
|
|
|
# bash completion for wine(1) -*- shell-script -*-
|
|
|
|
|
|
|
|
_wine()
|
|
|
|
{
|
|
|
|
local cur prev words cword
|
|
|
|
_init_completion || return
|
|
|
|
|
2011-11-20 17:00:03 +03:00
|
|
|
if [[ $cword -eq 1 ]]; then
|
2011-11-17 18:35:49 +03:00
|
|
|
if [[ "$cur" == -* ]]; then
|
2011-11-20 23:42:20 +03:00
|
|
|
COMPREPLY=( $( compgen -W '--help --version' -- "$cur" ) )
|
2011-11-17 18:35:49 +03:00
|
|
|
[[ $COMPREPLY ]] && return
|
|
|
|
fi
|
|
|
|
_filedir '[eE][xX][eE]?(.[sS][oO])|[cC][oO][mM]|[sS][cC][rR]'
|
|
|
|
else
|
|
|
|
_filedir
|
|
|
|
fi
|
|
|
|
} &&
|
|
|
|
complete -F _wine wine
|
|
|
|
|
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|