about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-11-25 01:12:14 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-11-25 01:12:14 +0000
commit3dde427b010c3fb8a2098ab0b0900ba133e77b01 (patch)
tree9f3d5b42fe38669d4223d63743c0631f26bef7e2 /Completion
parent4ad8baffe9a9644bf6073f56c90b8d3441dd3a1f (diff)
downloadzsh-3dde427b010c3fb8a2098ab0b0900ba133e77b01.tar.gz
zsh-3dde427b010c3fb8a2098ab0b0900ba133e77b01.tar.xz
zsh-3dde427b010c3fb8a2098ab0b0900ba133e77b01.zip
Merge of 23810: completion for lighty-{enable,disable}-mod on 4.2 branch.
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Debian/Command/_lighttpd16
1 files changed, 16 insertions, 0 deletions
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