about summary refs log tree commit diff
path: root/Completion/Unix/Command/_quilt
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2005-09-20 20:05:34 +0000
committerClint Adams <clint@users.sourceforge.net>2005-09-20 20:05:34 +0000
commit4882c536e98f68b2ecaecb4ed06f95fde9ed8a75 (patch)
treeea9254966f0946274886405165d42b6687adc2a0 /Completion/Unix/Command/_quilt
parent7aa716edfddafa1129e665f252ee3e8c502c1ffa (diff)
downloadzsh-4882c536e98f68b2ecaecb4ed06f95fde9ed8a75.tar.gz
zsh-4882c536e98f68b2ecaecb4ed06f95fde9ed8a75.tar.xz
zsh-4882c536e98f68b2ecaecb4ed06f95fde9ed8a75.zip
21740: completion for quilt.
Diffstat (limited to 'Completion/Unix/Command/_quilt')
-rw-r--r--Completion/Unix/Command/_quilt22
1 files changed, 22 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_quilt b/Completion/Unix/Command/_quilt
new file mode 100644
index 000000000..cbb1d90df
--- /dev/null
+++ b/Completion/Unix/Command/_quilt
@@ -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