/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.3
completions/jar
27 строк
516 B
Ville Skyttä
jar: Reuse unzip's xspec (RedHat: #928253).
27 мар 2013, 23:03
27 мар 2013, 23:03
3cb64ac
Код
Авторство
О чём код?
# jar(1) completion -*- shell-script -*- _jar() { local cur prev words cword _init_completion || return if [[ $cword -eq 1 ]]; then COMPREPLY=( $( compgen -W 'c t x u' -- "$cur" ) ) return 0 fi case ${words[1]} in *c*f) _filedir ;; *f) _filedir_xspec unzip ;; *) _filedir ;; esac } && complete -F _jar jar # ex: ts=4 sw=4 et filetype=sh