/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.13.0
completions/_eject
33 строки
823 B
Ville Skyttä
refactor: rename `{ => _comp_compgen}_cd_devices`, replace by default
05 авг 2023, 13:22
05 авг 2023, 13:22
cc9bb47
Код
Авторство
О чём код?
# bash completion for eject(1) -*- shell-script -*- # Use of this file is deprecated on Linux. Upstream completion is # available in util-linux >= 2.23, use that instead. _comp_cmd_eject() { local cur prev words cword comp_args _comp_initialize -- "$@" || return case $prev in -h | --help | -V | --version | -c | --changerslot | -x | --cdspeed) return ;; -a | --auto | -i | --manualeject) _comp_compgen -- -W 'on off' return ;; esac if [[ $cur == -* ]]; then _comp_compgen_help return elif [[ $prev == @(-d|--default) ]]; then return fi _comp_compgen_cd_devices _comp_compgen -a dvd_devices } && complete -F _comp_cmd_eject eject # ex: filetype=sh