/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.0
completions/jar
27 строк
526 B
Ville Skyttä
Move Emacs indentation settings from every file to .dir-locals.el.
02 ноя 2011, 00:14
02 ноя 2011, 00:14
0d10b94
Код
Авторство
О чём код?
# 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 '@([ejsw]ar|zip|apk)' ;; *) _filedir ;; esac } && complete -F _jar jar # ex: ts=4 sw=4 et filetype=sh