27 lines
551 B
Plaintext
Raw Normal View History

# unace(1) completion
_unace()
{
local cur prev words cword
_init_completion || return
if [[ "$cur" == -* ]] ; then
COMPREPLY=( $( compgen -W '-c -c- -f -f- -o -o- -p -y -y-' -- "$cur" ) )
else
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
# Local variables:
# mode: shell-script
2009-10-04 19:42:50 +02:00
# sh-basic-offset: 4
# sh-indent-comment: t
2009-10-04 19:42:50 +02:00
# indent-tabs-mode: nil
# End:
2009-10-04 19:42:50 +02:00
# ex: ts=4 sw=4 et filetype=sh