about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-10-08 16:07:35 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-10-08 16:07:35 +0000
commit00a5537e52175a53f19ed63a8066edfb45e09f30 (patch)
tree9f9ab848d9759fe101ec132c57c6c10cee720953 /Completion/Unix
parent8458eee0577bce8c479afa0897e7cacf99d3f7d5 (diff)
downloadzsh-00a5537e52175a53f19ed63a8066edfb45e09f30.tar.gz
zsh-00a5537e52175a53f19ed63a8066edfb45e09f30.tar.xz
zsh-00a5537e52175a53f19ed63a8066edfb45e09f30.zip
Merge new completions onto 4.2 branch.
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_comm20
1 files changed, 20 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_comm b/Completion/Unix/Command/_comm
new file mode 100644
index 000000000..e90c317f6
--- /dev/null
+++ b/Completion/Unix/Command/_comm
@@ -0,0 +1,20 @@
+#compdef comm
+
+local -a args
+
+args=(
+  '-1[suppress lines unique to FILE1]'
+  '-2[suppress lines unique to FILE2]'
+  '-3[suppress lines that appear in both files]'
+  '1:file1 to compare:_files'
+  '2:file2 to compare:_files'
+)
+
+if _pick_variant gnu=GNU unix --version; then
+  args+=(
+    '(- : *)--version[display version information]'
+    '(- : *)--help[display help information]'
+  )
+fi
+
+_arguments -s $args