split rrdtool completion

This commit is contained in:
Guillaume Rousse 2009-05-27 18:21:29 +02:00
parent 1bfaacd1a0
commit 0b8a2cf7af
3 changed files with 15 additions and 10 deletions

View File

@ -72,6 +72,7 @@ bashcomp_DATA = contrib/ant \
contrib/ri \
contrib/rpcdebug \
contrib/rpmcheck \
contrib/rrdtool \
contrib/rsync \
contrib/samba \
contrib/sbcl \

View File

@ -4944,16 +4944,6 @@ _invoke_rc_d()
} &&
complete -F _invoke_rc_d invoke-rc.d
have rrdtool &&
_rrdtool ()
{
cur=`_get_cword`
COMPREPLY=( $( compgen -W 'create update updatev graph dump \
restore last lastupdate first info \
fetch tune resize xport' -- $cur ) )
} &&
complete -F _rrdtool rrdtool
_filedir_xspec()
{
local IFS cur xspec

14
contrib/rrdtool Normal file
View File

@ -0,0 +1,14 @@
# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
# ex: ts=8 sw=8 noet filetype=sh
#
# bash completion for rrdtool
have rrdtool &&
_rrdtool ()
{
cur=`_get_cword`
COMPREPLY=( $( compgen -W 'create update updatev graph dump \
restore last lastupdate first info \
fetch tune resize xport' -- $cur ) )
} &&
complete -F _rrdtool rrdtool