about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-08-20 23:55:52 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-08-20 23:55:52 +0000
commiteb23336a58ae91a4ab5ce1fb96d1cdfea7691e13 (patch)
tree6f15aefa2a8a7fa5ab97f36ba5e30c59d0cb7c15
parent115a26274eaa536a7e8a21f6a7f9572adbbcc7ef (diff)
downloadzsh-eb23336a58ae91a4ab5ce1fb96d1cdfea7691e13.tar.gz
zsh-eb23336a58ae91a4ab5ce1fb96d1cdfea7691e13.tar.xz
zsh-eb23336a58ae91a4ab5ce1fb96d1cdfea7691e13.zip
manual/7458
-rw-r--r--Completion/User/_patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/Completion/User/_patch b/Completion/User/_patch
new file mode 100644
index 000000000..c477143ca
--- /dev/null
+++ b/Completion/User/_patch
@@ -0,0 +1,32 @@
+#compdef patch
+
+_arguments -s \
+  '-p+:number:(0)' \
+  '-F+:lines:' \
+  '-l' '-c' '-e' '-n' '-u' '-N' '-R' \
+  '-i+:patch file:_files' \
+  '-o+:output file:_files' \
+  '-r+:reject file:_files' \
+  '-D+:name:' \
+  '-E' '-Z' '-T' \
+  '-b' \
+  '-V+:version control style:(simple numbered existing)' \
+  '-B+:backup path prefix:' \
+  '-Y+:basename basename prefix:_files' \
+  '-z+:backup file suffix:(.bak)' \
+  '-g+:NUM:' \
+  '-t' '-f' '-s' \
+  '-d+:chdir to:_files -/' \
+  '-v' \
+  ':original file:_files' \
+  ':patch file:_files' \
+  -- \
+  '*=NUM*:number:(0)' \
+  '*=LINES*:lines:' \
+  '*=PATCHFILE*:patch file:_files' \
+  '*=FILE*:file:_files' \
+  '*=NAME*:name:' \
+  '*=WORD*:quoting style:(literal shell shell-always c escape)' \
+  '*=STYLE*:version control style:(simple numbered existing)' \
+  '*=SUFFIX*:backup file suffix:(.bak)' \
+  '*=DIR*:chdir to:_files -/'