/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.3
completions/rrdtool
17 строк
453 B
Ville Skyttä
*: Line continuation, whitespace, and compgen -W ... -- "$cur" quoting cleanups.
18 фев 2013, 01:49
18 фев 2013, 01:49
6185297
Код
Авторство
О чём код?
# bash completion for rrdtool -*- shell-script -*- _rrdtool () { local cur prev words cword _init_completion || return if [[ ${#words[@]} -eq 2 ]]; then COMPREPLY=( $( compgen -W 'create update updatev graph dump restore last lastupdate first info fetch tune resize xport' -- "$cur" ) ) else _filedir rrd fi } && complete -F _rrdtool rrdtool # ex: ts=4 sw=4 et filetype=sh