blob: c7af5bd3460f781e6eb9bdfacda5df1dd103aeb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# bash completion for munin node
have munin-run &&
_munin_run()
{
local cur prev words cword
_init_completion || return
case $prev in
--config|--sconffile)
_filedir
return 0
;;
--servicedir|--sconfdir)
_filedir -d
return 0
;;
esac
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
else
COMPREPLY=( $( compgen -W '$( command ls /etc/munin/plugins )' \
-- "$cur" ) )
fi
} &&
complete -F _munin_run munin-run
have munindoc &&
_munindoc()
{
local cur prev words cword
_init_completion || return
COMPREPLY=( $( compgen -W '$( command ls /usr/share/munin/plugins )' \
-- "$cur" ) )
} &&
complete -F _munindoc munindoc
have munin-update &&
_munin_update()
{
local cur prev words cword
_init_completion || return
case $prev in
--config)
_filedir
return 0
;;
--host)
_known_hosts_real "$cur"
return 0
;;
esac
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '--force-root --[no]force-root \
--service --host --config --help --debug --nodebug \
--fork --nofork --stdout --nostdout --timeout' -- "$cur" ) )
fi
} &&
complete -F _munin_update munin-update
have munin-node-configure &&
_munin_node_configure()
{
local cur prev words cword
_init_completion || return
case $prev in
--config)
_filedir
return 0
;;
--servicedir|--libdir)
_filedir -d
return 0
;;
--snmp)
_known_hosts_real "$cur"
return 0
;;
--snmpversion)
COMPREPLY=( $( compgen -W '1 2c 3' -- "$cur" ) )
return 0
;;
esac
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
fi
} &&
complete -F _munin_node_configure munin-node-configure
# 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
|