summaryrefslogtreecommitdiff
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
parent1eb5efc826408906f57c893471d17aa25af1445c (diff)
downloadzsh-9b05a714c3fefd05b4b06c6329f2ba3fc7e336c1.tar.gz
zsh-9b05a714c3fefd05b4b06c6329f2ba3fc7e336c1.zip
21696: completion for GNU date.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_date14
2 files changed, 19 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 25324fc9b..179e009c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-09-02 Clint Adams <clint@zsh.org>
+
+ * 21696: Completion/Unix/Command/_date: completion for
+ GNU date.
+
2005-09-02 Peter Stephenson <pws@csr.com>
* 21695: Doc/Zsh/expn.yo: rewrite entry for u globbing flag.
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:'