mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-03-12 04:36:22 -07:00
28 lines
497 B
Bash
28 lines
497 B
Bash
# 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
|