fix(history): add `t` option to history wrapper (#12365)
The `t` option takes a strftime format specification as argument. This
fixes cases in which $HIST_STAMPS is set to a value other than
`mm/dd/yyyy|dd.mm.yyyy|yyyy-mm-dd`.
Diff
1diff --git a/lib/history.zsh b/lib/history.zsh
2index aace78aa1e7d1e956ee62f6252efc586f1bfce78..a8431fd5a7eaa6a571216a29a95f9f69fad6685e 100644
3--- a/lib/history.zsh
4+++ b/lib/history.zsh
5@@ -2,7 +2,7 @@
6 function omz_history {
7 # parse arguments and remove from $@
8 local clear list stamp
9- zparseopts -E -D c=clear l=list f=stamp E=stamp i=stamp
10+ zparseopts -E -D c=clear l=list f=stamp E=stamp i=stamp t:=stamp
1112 if [[ -n "$clear" ]]; then
13 # if -c provided, clobber the history file