2011-11-01 22:14:45 +02:00
|
|
|
# bash completion for rrdtool -*- shell-script -*-
|
2009-05-27 18:21:29 +02:00
|
|
|
|
|
|
|
_rrdtool ()
|
|
|
|
{
|
2011-04-21 11:04:51 +03:00
|
|
|
local cur prev words cword
|
|
|
|
_init_completion || return
|
2010-02-08 17:25:08 +01:00
|
|
|
|
2011-11-09 23:28:11 +02:00
|
|
|
if [[ ${#words[@]} -eq 2 ]]; then
|
2013-02-17 23:49:30 +02:00
|
|
|
COMPREPLY=( $( compgen -W 'create update updatev graph dump restore
|
2011-04-27 13:45:03 +02:00
|
|
|
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-01 20:54:51 +03:00
|
|
|
|
2009-10-04 19:42:50 +02:00
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|