/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
completions-core/function.bash
15 строк
392 B
Ville Skyttä
chore: remove most editor mode config comments
01 июн 2026, 21:26
01 июн 2026, 21:26
bdeca44
Код
Авторство
О чём код?
# bash shell function completion _comp_cmd_function() { local cur prev words cword comp_args _comp_initialize -- "$@" || return if ((cword == 1)); then _comp_compgen -- -A function else local funcdef=$(type -- "${words[1]}" 2>/dev/null | _comp_tail -n +3) COMPREPLY=("()${funcdef:+ $funcdef}") fi } && complete -F _comp_cmd_function function