Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _module
- X-seq: zsh-workers 23215
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: _module
- Date: Wed, 14 Mar 2007 17:11:05 -0400
- Cc: Daniel Qarras <dqarras@xxxxxxxxx>
- Mail-followup-to: zsh-workers@xxxxxxxxxx, Daniel Qarras <dqarras@xxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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.
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author