From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2686 invoked from network); 14 Mar 2007 21:32:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FORGED_RCVD_HELO autolearn=unavailable version=3.1.8 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 14 Mar 2007 21:32:10 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 87116 invoked from network); 14 Mar 2007 21:32:05 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 Mar 2007 21:32:05 -0000 Received: (qmail 26419 invoked by alias); 14 Mar 2007 21:32:01 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23216 Received: (qmail 23838 invoked from network); 14 Mar 2007 21:25:19 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 14 Mar 2007 21:25:19 -0000 Received: (qmail 81510 invoked from network); 14 Mar 2007 21:25:19 -0000 Received: from web36807.mail.mud.yahoo.com (209.191.85.58) by a.mx.sunsite.dk with SMTP; 14 Mar 2007 21:25:12 -0000 Received: (qmail 16893 invoked by uid 60001); 14 Mar 2007 21:25:10 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=45gWpOdmmotliI9gNnX78hv+48O2UVdNVtJJa/hskSUm103SaA09jkC+FKKBam0Im3r0XyBS6WCwE4Ubcm6PCSFUEm869EsetBJvlGQMNZMvoqIFkPp13K5k0HzhWoUlpzaZed3Km/KphkcrutPGzJz1qe1E4hHl+A8GLkepo+Y= ; Message-ID: <20070314212510.16891.qmail@web36807.mail.mud.yahoo.com> X-YMail-OSG: tVacC8UVM1nivOTvkWpef9vUYe06AYPsW4zpIxhNrgXNn8b01wVjK5_GeGQJ_h_yfXIhjZq5BOuhhVxXkjhCbsU301ksi3M7nmcwyPqfUoPXRUYAAoJUbuh5_OFCiGpRuge32_Obq3Dgm_y30gkxxWoeNg-- Received: from [88.114.230.68] by web36807.mail.mud.yahoo.com via HTTP; Wed, 14 Mar 2007 14:25:10 PDT Date: Wed, 14 Mar 2007 14:25:10 -0700 (PDT) From: Daniel Qarras Subject: Re: PATCH: _module To: Clint Adams , zsh-workers@sunsite.dk In-Reply-To: <20070314211105.GA24978@scowler.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi Clint, > Despite the generic name, this is not part of GNUstep; it's > http://modules.sourceforge.net/ . > > Daniel, someone will need to work on filling in the additional > arguments. thanks for your initiative! However, I guess the real meat would be completion of the module files in $MODULEPATH or loaded module files available with "module list". I'll inspect that later this week if you don't beat me. Thanks! > > Index: Completion/Unix/Command/_module > =================================================================== > RCS file: Completion/Unix/Command/_module > diff -N Completion/Unix/Command/_module > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ Completion/Unix/Command/_module 14 Mar 2007 21:06:49 -0000 > @@ -0,0 +1,29 @@ > +#compdef module > + > +local context state line > +typeset -A opt_args > + > +_arguments \ > + '(-f --force)'{--force,-f}'[force active dependency resolution]' \ > + '(-t --terse)'{--terse,-t}'[display avail and list output in short > format]' \ > + '(-l --long)'{--long,-l}'[display avail and list output in long > format]' \ > + '(-h --human)'{--human,-h}'[display short output in human-readable > format]' \ > + '(-v --verbose)'{--verbose,-v}'[verbose]' \ > + '(-s --silent)'{--silent,-s}'[disable verbose messages]' \ > + '(-c --create)'{--create,-c}'[create caches]' \ > + '(-i --icase)'{--icase,-i}'[case insensitive]' \ > + '(-i --icase)'{--icase,-i}'[case insensitive]' \ > + '(-u --userlvl)'{--userlvl,-u}'[set user level to > value]:level:(novice expert advanced)' \ > + '*::command:->subcmds' && return 0 > + > +case "$state" in > + (subcmds) > + if (( CURRENT == 1 )); then > + compadd -- help load add unload rm switch swap display show > list \ > + avail use unuse update clear purge whatis apropos > keyword \ > + initadd initprepend initswitch initlist initclear > + else > + _files > + fi > + ;; > +esac > ____________________________________________________________________________________ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html