20 lines
392 B
Bash

# munindoc completion
_munindoc()
{
local cur prev words cword
_init_completion || return
COMPREPLY=( $( compgen -W \
'$( command ls /usr/share/munin/plugins 2>/dev/null )' -- "$cur" ) )
} &&
complete -F _munindoc munindoc
# Local variables:
# mode: shell-script
# sh-basic-offset: 4
# sh-indent-comment: t
# indent-tabs-mode: nil
# End:
# ex: ts=4 sw=4 et filetype=sh