1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-13 01:31:18 +02:00
zsh/Completion/Debian/Command/_lighttpd
2017-04-26 16:32:10 +02:00

16 lines
414 B
Text

#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