2011-11-01 22:14:45 +02:00
|
|
|
# munindoc completion -*- shell-script -*-
|
2011-10-12 23:01:10 +03:00
|
|
|
|
|
|
|
_munindoc()
|
|
|
|
{
|
|
|
|
local cur prev words cword
|
|
|
|
_init_completion || return
|
|
|
|
|
add_members, bk, gcc, mtx, munin-run, munindoc, mutt, p4, portinstall, postmap, ri, ypmatch: Avoid stderr spewage when needed commands/dirs are not available.
2011-10-22 11:48:23 +03:00
|
|
|
COMPREPLY=( $( compgen -W \
|
|
|
|
'$( command ls /usr/share/munin/plugins 2>/dev/null )' -- "$cur" ) )
|
2011-10-12 23:01:10 +03:00
|
|
|
} &&
|
|
|
|
complete -F _munindoc munindoc
|
|
|
|
|
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|