/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.0
completions/dselect
31 строка
710 B
Ville Skyttä
Move Emacs indentation settings from every file to .dir-locals.el.
02 ноя 2011, 00:14
02 ноя 2011, 00:14
0d10b94
Код
Авторство
О чём код?
# Debian Linux dselect(8) completion -*- shell-script -*- _dselect() { local cur prev words cword _init_completion || return case $prev in --admindir) _filedir -d return 0 ;; -D|-debug) _filedir return 0 ;; esac if [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W '--admindir --help --version --licence \ --license --expert --debug' -- "$cur" ) ) else COMPREPLY=( $( compgen -W 'access update select install config \ remove quit' -- "$cur" ) ) fi return 0 } && complete -F _dselect dselect # ex: ts=4 sw=4 et filetype=sh