/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.7
completions/id
18 строк
441 B
Ville Skyttä
*: Move indentation settings to .editorconfig
24 авг 2016, 14:33
24 авг 2016, 14:33
619fb1f
Код
Авторство
О чём код?
# id(1) completion -*- shell-script -*- _id() { local cur prev words cword _init_completion || return if [[ "$cur" == -* ]]; then local opts=$( _parse_help "$1" ) [[ $opts ]] || opts="-G -g -u" # POSIX fallback COMPREPLY=( $( compgen -W "$opts" -- "$cur" ) ) else COMPREPLY=( $( compgen -u "$cur" ) ) fi } && complete -F _id id # ex: filetype=sh