summary refs log tree commit diff
path: root/Completion/Debian/Command/_lighttpd
blob: c24b42d13ef8cc4ac68b46946497fa97688225e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#compdef lighty-enable-mod lighty-disable-mod

local -a mods expl

case "$service" in
    lighty-enable-mod)
		mods=( `echo /etc/lighttpd/conf-available/*.conf(N:r:t) | sed -e 's/\b[0-9][0-9]-//g'` )
		_wanted mods expl mod compadd -a mods
	;;
    lighty-disable-mod)
		mods=( `echo /etc/lighttpd/conf-enabled/*.conf(N:r:t) | sed -e 's/\b[0-9][0-9]-//g'` )
		_wanted mods expl mod compadd -a mods
	;;
esac

return