# bash completion for rrdtool -*- shell-script -*- proc _rrdtool { var cur = '', prev = '', words = '', cword = '' _init_completion || return if [[ ${#words[@]} -eq 2 ]] { setglobal COMPREPLY = '( '$( compgen -W 'create update updatev graph dump restore last lastupdate first info fetch tune resize xport' -- "$cur" ) ) } else { _filedir rrd } } && complete -F _rrdtool rrdtool # ex: ts=4 sw=4 et filetype=sh