about summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2005-09-03 00:16:59 +0000
committerClint Adams <clint@users.sourceforge.net>2005-09-03 00:16:59 +0000
commit9b05a714c3fefd05b4b06c6329f2ba3fc7e336c1 (patch)
tree6442b57fd9d7fa9c5e26f65ce0472e55d3bcb3d7 /Completion/Unix/Command
parent1eb5efc826408906f57c893471d17aa25af1445c (diff)
downloadzsh-9b05a714c3fefd05b4b06c6329f2ba3fc7e336c1.tar.gz
zsh-9b05a714c3fefd05b4b06c6329f2ba3fc7e336c1.tar.xz
zsh-9b05a714c3fefd05b4b06c6329f2ba3fc7e336c1.zip
21696: completion for GNU date.
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_date14
1 files changed, 14 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_date b/Completion/Unix/Command/_date
new file mode 100644
index 000000000..929b35c84
--- /dev/null
+++ b/Completion/Unix/Command/_date
@@ -0,0 +1,14 @@
+#compdef date
+
+_arguments \
+    '-d[date]:time string:' \
+    '-f[file]:date file:_files' \
+    '-I[iso-8601]:time spec:' \
+    '-r[reference]:file:_files' \
+    '-R[rfc-2822]' \
+    '-s[set]:time string:' \
+    '-u[utc]' \
+    -- \
+    '*=FILE*:file:_files' \
+    '*=DATEFILE*:date file:_files' \
+    ':format or date:'