Added munindoc completion to contrib/munin-node, thanks to Tom Feiner (Debian: #553371)

This commit is contained in:
David Paleino 2009-10-31 22:45:49 +01:00
parent f1b3be2357
commit b4901c1f6e
2 changed files with 19 additions and 3 deletions

View File

@ -8,6 +8,8 @@ bash-completion (2.x)
* contrib/munin-node fixed (Debian: #550943) * contrib/munin-node fixed (Debian: #550943)
* contrib/dpkg fixed -W and --show completing on .?(u)deb's (Debian: #552109) * contrib/dpkg fixed -W and --show completing on .?(u)deb's (Debian: #552109)
* contrib/aptitude: add @(add|remove)-user-tag * contrib/aptitude: add @(add|remove)-user-tag
* Added munindoc completion to contrib/munin-node, thanks to Tom
Feiner (Debian: #553371)
[ Ville Skyttä ] [ Ville Skyttä ]
* Create bz2 dist tarball too. * Create bz2 dist tarball too.

View File

@ -7,7 +7,7 @@ _munin_run()
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`
prev=${COMP_WORDS[COMP_CWORD-1]} prev=`_get_pword`
case $prev in case $prev in
--@(config|sconffile)) --@(config|sconffile))
@ -30,6 +30,20 @@ _munin_run()
} && } &&
complete -F _munin_run munin-run complete -F _munin_run munin-run
have munindoc &&
_munindoc()
{
local cur prev
COMPREPLY=()
cur=`_get_cword`
prev=`_get_pword`
COMPREPLY=( $( compgen -W '$( command ls /usr/share/munin/plugins )' \
-- "$cur" ) )
} &&
complete -F _munindoc munindoc
have munin-update && have munin-update &&
_munin_update() _munin_update()
{ {
@ -37,7 +51,7 @@ _munin_update()
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`
prev=${COMP_WORDS[COMP_CWORD-1]} prev=`_get_pword`
case $prev in case $prev in
--config) --config)
@ -65,7 +79,7 @@ _munin_node_configure()
COMPREPLY=() COMPREPLY=()
cur=`_get_cword` cur=`_get_cword`
prev=${COMP_WORDS[COMP_CWORD-1]} prev=`_get_pword`
case $prev in case $prev in
--config) --config)