1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 04:30:24 +02:00

23810: completion for lighty-{enable,disable}-mod

This commit is contained in:
Clint Adams 2007-08-30 23:09:03 +00:00
parent e0a3e74b15
commit cf9c7884f1
2 changed files with 21 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2007-08-30 Clint Adams <clint@zsh.org>
* Chris Lamb: 23810: Completion/Debian/Command/_lighttpd:
completion for lighty-{enable,disable}-mod .
2007-08-30 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 23809: Src/Zle/zle_tricky.c: attempt to expand finished

View file

@ -0,0 +1,16 @@
#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