/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
completions-fallback/su.bash
37 строк
839 B
Ville Skyttä
chore: remove most editor mode config comments
01 июн 2026, 21:26
01 июн 2026, 21:26
bdeca44
Код
Авторство
О чём код?
# bash completion for su(1) # Use of this file is deprecated on Linux. Upstream completion is # available in util-linux >= 2.23, use that instead. if [[ $OSTYPE != *linux* ]]; then complete -u su # default completion return fi _comp_cmd_su() { # linux-specific completion local cur prev words cword was_split comp_args _comp_initialize -s -- "$@" || return case "$prev" in -s | --shell) _comp_compgen_shells return ;; -c | --command | --session-command) _comp_compgen_commands return ;; esac [[ $was_split ]] && return if [[ $cur == -* ]]; then _comp_compgen_help [[ ${COMPREPLY-} == *= ]] && compopt -o nospace return fi _comp_compgen -- -u } && complete -F _comp_cmd_su su