/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
completions-core/postconf.bash
37 строк
760 B
Ville Skyttä
chore: remove most editor mode config comments
01 июн 2026, 21:26
01 июн 2026, 21:26
bdeca44
Код
Авторство
О чём код?
# postconf(1) completion _comp_cmd_postconf() { local cur prev words cword comp_args _comp_initialize -- "$@" || return local eqext case $prev in -b | -t) _comp_compgen_filedir return ;; -c) _comp_compgen_filedir -d return ;; -e) cur=${cur#[\"\']} eqext='=' ;; esac if [[ $cur == -* ]]; then _comp_compgen_usage return fi local len=${#cur} pval for pval in $(/usr/sbin/postconf 2>/dev/null | cut -d ' ' -f 1); do if [[ $cur == "${pval:0:len}" ]]; then COMPREPLY+=("$pval${eqext-}") fi done } && complete -F _comp_cmd_postconf postconf