Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _quilt
- X-seq: zsh-workers 21740
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: _quilt
- Date: Tue, 20 Sep 2005 16:02:43 -0400
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
A start on quilt completion.
Index: Completion/Unix/Command/_quilt
===================================================================
RCS file: Completion/Unix/Command/_quilt
diff -N Completion/Unix/Command/_quilt
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Completion/Unix/Command/_quilt 20 Sep 2005 20:01:00 -0000
@@ -0,0 +1,22 @@
+#compdef quilt
+
+local _quilt_subcommands expl curcontext="$curcontext"
+
+_arguments \
+ '--trace' \
+ '--quiltrc:config file:_files' \
+ '--version' \
+ '*::quilt command:->subcmd' && return 0
+
+
+ _quilt_subcommands=(add files import previous setup annotate fold mail
+ push snapshot applied fork new refresh top delete graph next remove
+ unapplied diff grep patches rename upgrade edit header pop series)
+
+
+if (( CURRENT == 1 )); then
+ _describe -t subcommand 'subcommand' _quilt_subcommands
+else
+ # this part should be tailored for subcmds
+ _files
+fi
Messages sorted by:
Reverse Date,
Date,
Thread,
Author