21 lines
493 B
Plaintext
Raw Normal View History

# unace(1) completion -*- shell-script -*-
_unace()
{
local cur prev words cword
_init_completion || return
2011-11-09 23:28:11 +02:00
if [[ $cur == -* ]]; then
COMPREPLY=( $( compgen -W '-c -c- -f -f- -o -o- -p -y -y-' -- "$cur" ) )
else
2011-11-09 23:28:11 +02:00
if [[ $cword -eq 1 ]]; then
2009-10-04 19:42:50 +02:00
COMPREPLY=( $( compgen -W 'e l t v x' -- "$cur" ) )
else
_filedir ace
2009-10-04 19:42:50 +02:00
fi
fi
2009-06-08 21:22:43 +03:00
} &&
complete -F _unace unace
2009-10-04 19:42:50 +02:00
# ex: ts=4 sw=4 et filetype=sh