zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _lighttpd
@ 2007-08-30 22:52 Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2007-08-30 22:52 UTC (permalink / raw)
  To: zsh-workers

Completion for lighty-{enable,disable}-mod from Chris Lamb:

Index: Completion/Debian/Command/_lighttpd
===================================================================
RCS file: Completion/Debian/Command/_lighttpd
diff -N Completion/Debian/Command/_lighttpd
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Completion/Debian/Command/_lighttpd	30 Aug 2007 22:50:49 -0000
@@ -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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-30 22:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-30 22:52 PATCH: _lighttpd Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).