# jar(1) completion -*- shell-script -*-
_jar()
{
local cur prev words cword
_init_completion || return
if ((cword == 1)); then
COMPREPLY=($(compgen -W 'c t x u' -- "$cur"))
return
fi
case ${words[1]} in
*c*f)
_filedir
;;
*f)
_filedir_xspec unzip
;;
*)
_filedir
;;
esac
} &&
complete -F _jar jar
# ex: filetype=sh