# jar(1) completion -*- shell-script -*- proc _jar { var cur = '', prev = '', words = '', cword = '' _init_completion || return if [[ $cword -eq 1 ]] { setglobal COMPREPLY = '( '$( compgen -W 'c t x u' -- "$cur" ) ) return 0 } match $(words[1]) { with *c*f _filedir with *f _filedir_xspec unzip with * _filedir } } && complete -F _jar jar # ex: ts=4 sw=4 et filetype=sh