diff options
| author | Igor Murzov <e-mail@date.by> | 2011-11-17 18:35:49 +0300 |
|---|---|---|
| committer | Igor Murzov <e-mail@date.by> | 2011-11-17 18:35:49 +0300 |
| commit | 43e8e2b5045cd5ee702e867a7cf9757287bdf755 (patch) | |
| tree | 750c55d44dae05b75e6ddac4b22864db10a4cac2 /completions | |
| parent | 82784121d863bede6b40433a52cceaabb79d7df6 (diff) | |
| download | bash-completion-43e8e2b5045cd5ee702e867a7cf9757287bdf755.tar.gz | |
wine: Complete all files after an .exe (Alioth #313131)
Diffstat (limited to 'completions')
| -rw-r--r-- | completions/Makefile.am | 1 | ||||
| -rw-r--r-- | completions/wine | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/completions/Makefile.am b/completions/Makefile.am index 66f0eeb9..c6ff1ec8 100644 --- a/completions/Makefile.am +++ b/completions/Makefile.am @@ -305,6 +305,7 @@ bashcomp_DATA = a2x \ vpnc \ watch \ webmitm \ + wine \ withlist \ wodim \ wol \ diff --git a/completions/wine b/completions/wine new file mode 100644 index 00000000..58e4cf46 --- /dev/null +++ b/completions/wine @@ -0,0 +1,20 @@ +# bash completion for wine(1) -*- shell-script -*- + +_wine() +{ + local cur prev words cword + _init_completion || return + + if [[ "$cword" -eq 1 ]]; then + if [[ "$cur" == -* ]]; then + COMPREPLY=( $(compgen -W '--help --version' -- "$cur") ) + [[ $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 |
