From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10911 invoked from network); 23 Feb 2001 15:07:32 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 23 Feb 2001 15:07:32 -0000 Received: (qmail 6650 invoked by alias); 23 Feb 2001 15:07:25 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13528 Received: (qmail 6639 invoked from network); 23 Feb 2001 15:07:23 -0000 X-Authentication-Warning: godzilla.phydeaux.org: fletch set sender to fletch@phydeaux.org using -f Sender: fletch@phydeaux.org To: zsh-workers@sunsite.dk Subject: completion function for apachectl From: Fletch Organization: Very Little Date: 23 Feb 2001 10:07:14 -0500 Message-ID: User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/20.4 (Emerald) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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@phydeaux.org | Vincent, you should cease askin' \ o.O' 770 933-0600 x211(w) | scary questions." -- Jules =(___)= | U