diff options
author | Clint Adams <clint@users.sourceforge.net> | 2007-08-30 23:09:03 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2007-08-30 23:09:03 +0000 |
commit | cf9c7884f1733c5604db38d135622b203d6c98fe (patch) | |
tree | a1886a8c48d696851d5a27de4cb41d979357c55b | |
parent | e0a3e74b15fd39b21ef1770e67e2f005321b5fb9 (diff) | |
download | zsh-cf9c7884f1733c5604db38d135622b203d6c98fe.tar.gz zsh-cf9c7884f1733c5604db38d135622b203d6c98fe.tar.xz zsh-cf9c7884f1733c5604db38d135622b203d6c98fe.zip |
23810: completion for lighty-{enable,disable}-mod
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Debian/Command/_lighttpd | 16 |
2 files changed, 21 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 361ead3bd..5494843d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/Completion/Debian/Command/_lighttpd b/Completion/Debian/Command/_lighttpd new file mode 100644 index 000000000..7f4385b90 --- /dev/null +++ b/Completion/Debian/Command/_lighttpd @@ -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 |