Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: _module
- X-seq: zsh-workers 23216
- From: Daniel Qarras <dqarras@xxxxxxxxx>
- To: Clint Adams <clint@xxxxxxx>, zsh-workers@xxxxxxxxxx
- Subject: Re: PATCH: _module
- Date: Wed, 14 Mar 2007 14:25:10 -0700 (PDT)
- 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=  ;
- In-reply-to: <20070314211105.GA24978@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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 
Messages sorted by:
Reverse Date,
Date,
Thread,
Author