about summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-06-04 02:43:04 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-06-04 02:43:04 +0000
commit8ee5f077fce392449742234cece8d103d488b556 (patch)
tree34fd0b004137ae8055b4c92dfc2f15a47de7e6b1 /Completion/Unix/Command
parent1ea4393573fd12ba0e5ddc69032527cf2a376b43 (diff)
downloadzsh-8ee5f077fce392449742234cece8d103d488b556.tar.gz
zsh-8ee5f077fce392449742234cece8d103d488b556.tar.xz
zsh-8ee5f077fce392449742234cece8d103d488b556.zip
Merge of revision 1.2.
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_cal28
1 files changed, 28 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_cal b/Completion/Unix/Command/_cal
new file mode 100644
index 000000000..82bb98b5f
--- /dev/null
+++ b/Completion/Unix/Command/_cal
@@ -0,0 +1,28 @@
+#compdef cal ncal
+
+local args
+
+case $service in
+  cal)
+    args=(
+      '-3[three in a row]'
+      '-m[Monday as first day of the week]'
+    )
+  ;;
+  ncal)
+    args=(
+      '-J[display Julian calendar]'
+      '-e[display date of western Easter]'
+      '-o[display date of orthodox Easter]'
+      '-p[assume as by ncal]'
+      '-s[country code]'
+      '-w[print number of the week below each column]'
+    )
+  ;;
+esac
+
+_arguments "${args[@]}" \
+  '-j[display Julian days]' \
+  '-y[display a calendar for the current year]' \
+  '::month' \
+  ':year'