Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

completion function for apachectl



        This completes for apachectl (a utility that comes with apache 
to do things such as restarting apache, syntax checking it's
configuration file, and the like).


--- /dev/null   Tue May  5 16:32:27 1998
+++ _apachectl  Fri Feb 23 10:01:49 2001
@@ -0,0 +1,12 @@
+#compdef apachectl
+
+local curcontext="$curcontext" state line commands ret=1
+typeset -A opt_args
+
+commands=( start startssl stop restart fullstatus status 
+           graceful configtest help )
+
+_arguments \
+  ":Choose an action:($commands)" && ret=0
+
+return $ret




-- 
Fletch                | "If you find my answers frightening,       __`'/|
fletch@xxxxxxxxxxxx   |  Vincent, you should cease askin'          \ o.O'
770 933-0600 x211(w)  |  scary questions." -- Jules                =(___)=
                      |                                               U



Messages sorted by: Reverse Date, Date, Thread, Author