/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.8
completions/pv
30 строк
719 B
Ville Skyttä
pv: New completion
09 ноя 2017, 10:47
09 ноя 2017, 10:47
f6f5f4f
Код
Авторство
О чём код?
# pv(1) completion -*- shell-script -*- _pv() { local cur prev words cword _init_completion || return case $prev in -h|--help|-V|--version|-A|--last-written|-F|--format|-D|--delay-start|\ -i|--interval|-w|--width|-H|--height|-N|--name|-L|--rate-limit|\ -B|--buffer-size) return ;; -R|--remote) _pids return ;; -P|--pidfile|-d|--watchfd) _filedir pid return ;; esac if [[ $cur == -* ]]; then COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) else _filedir fi } && complete -F _pv pv