18 lines
453 B
Plaintext
Raw Normal View History

# bash completion for rrdtool -*- shell-script -*-
2009-05-27 18:21:29 +02:00
_rrdtool ()
{
local cur prev words cword
_init_completion || return
2011-11-09 23:28:11 +02:00
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
2009-05-27 18:21:29 +02:00
} &&
complete -F _rrdtool rrdtool
2009-10-04 19:42:50 +02:00
# ex: ts=4 sw=4 et filetype=sh