about summary refs log tree commit diff
path: root/Completion/Zsh
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2015-07-30 07:38:50 +0200
committerMikael Magnusson <mikachu@gmail.com>2015-08-12 17:55:07 +0200
commitb386bbaf29399b7845a546eae16af32af3cc9205 (patch)
tree33d283e0ab6993b6d6c9edc512dc6c5e6e85e627 /Completion/Zsh
parentaa722536ea6b3c2f417360c007db9da8b3adacac (diff)
downloadzsh-b386bbaf29399b7845a546eae16af32af3cc9205.tar.gz
zsh-b386bbaf29399b7845a546eae16af32af3cc9205.tar.xz
zsh-b386bbaf29399b7845a546eae16af32af3cc9205.zip
36119: _strftime: Add completion for zsh/datetime's strftime builtin
Diffstat (limited to 'Completion/Zsh')
-rw-r--r--Completion/Zsh/Command/_strftime12
1 files changed, 12 insertions, 0 deletions
diff --git a/Completion/Zsh/Command/_strftime b/Completion/Zsh/Command/_strftime
new file mode 100644
index 000000000..0be7b078d
--- /dev/null
+++ b/Completion/Zsh/Command/_strftime
@@ -0,0 +1,12 @@
+#compdef strftime
+
+local ret=1 expl
+
+_arguments -S -A '-*' -s \
+  '-q[run quietly]' \
+  '-r[reverse lookup using strptime]' \
+  '-s+[assign result to parameter]:param:_parameters' \
+  '1:format: _date_formats' \
+  '2:epoch time (or date string with -r)' && ret=0
+
+return ret