1#compdef lighty-enable-mod lighty-disable-mod 2 3local -a mods 4 5case "$service" in 6 lighty-enable-mod) 7 mods=( `echo /etc/lighttpd/conf-available/*.conf(N:r:t) | sed -e 's/\b[0-9][0-9]-//g'` ) 8 _wanted mods expl mods compadd -a mods 9 ;; 10 lighty-disable-mod) 11 mods=( `echo /etc/lighttpd/conf-enabled/*.conf(N:r:t) | sed -e 's/\b[0-9][0-9]-//g'` ) 12 _wanted mods expl mods compadd -a mods 13 ;; 14esac 15 16return 0 17