Add t option to omz_history function

The `t` option takes a strftime format specification as argument. This
fixes cases in which $HIST_STAMPS is set to a value outrange
`"mm/dd/yyyy|dd.mm.yyyy|yyyy-mm-dd"`.
This commit is contained in:
Martin Hans 2024-04-18 10:19:27 +02:00
commit 332c19ae96
No known key found for this signature in database

View file

@ -2,7 +2,7 @@
function omz_history {
# parse arguments and remove from $@
local clear list stamp
zparseopts -E -D c=clear l=list f=stamp E=stamp i=stamp
zparseopts -E -D c=clear l=list f=stamp E=stamp i=stamp t:=stamp
if [[ -n "$clear" ]]; then
# if -c provided, clobber the history file