1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 17:24:50 +01:00

36119: _strftime: Add completion for zsh/datetime's strftime builtin

This commit is contained in:
Mikael Magnusson 2015-07-30 07:38:50 +02:00
parent aa722536ea
commit b386bbaf29
2 changed files with 15 additions and 0 deletions

View file

@ -26,6 +26,9 @@
* 36120: Completion/Unix/Command/_sort: Fix syntax error
* 36119: Completion/Zsh/Command/_strftime: Add completion for
zsh/datetime's strftime builtin
2015-08-11 Barton E. Schaefer <schaefer@zsh.org>
* 36108: NEWS: list of major changes so far since 5.0.8

View file

@ -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