Skip to content

Commit

Permalink
fix(history): add t option to history wrapper (ohmyzsh#12365)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
artnim authored Apr 18, 2024
1 parent 80a651a commit d17ca48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/history.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d17ca48

Please sign in to comment.