mirror of
https://git.code.sf.net/p/zsh/code
synced 2026-04-20 07:43:58 -04:00
17 lines
413 B
Plaintext
17 lines
413 B
Plaintext
#compdef lighty-enable-mod lighty-disable-mod
|
|
|
|
local -a mods
|
|
|
|
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 mods 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 mods compadd -a mods
|
|
;;
|
|
esac
|
|
|
|
return 0
|