/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.11
completions/badblocks
29 строк
595 B
Ville Skyttä
*: run all shell code through shfmt -s
06 май 2020, 22:54
06 май 2020, 22:54
dbe0ec8
Код
Авторство
О чём код?
# badblocks(8) completion -*- shell-script -*- _badblocks() { local cur prev words cword _init_completion || return case $prev in -*[bcedpt]) return ;; -*[io]) _filedir return ;; esac if [[ $cur == -* ]]; then # Filter out -w (dangerous) and -X (internal use) COMPREPLY=($(compgen -X -[wX] -W '$(_parse_usage "$1")' -- "$cur")) return fi cur=${cur:=/dev/} _filedir } && complete -F _badblocks badblocks # ex: filetype=sh