diff options
| author | Martin Hans <artnim@users.noreply.github.com> | 2024-04-18 10:49:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-18 10:49:34 +0200 |
| commit | d17ca487a4357923d8b8681b9e40c2bb2d2fadea (patch) | |
| tree | 6b4ad6310540ceb92406cfab432b6fadbadb8f1c /lib | |
| parent | 80a651a6dfafc40630b47ad2f173d326844d6925 (diff) | |
| download | zsh-d17ca487a4357923d8b8681b9e40c2bb2d2fadea.tar.gz zsh-d17ca487a4357923d8b8681b9e40c2bb2d2fadea.tar.bz2 zsh-d17ca487a4357923d8b8681b9e40c2bb2d2fadea.zip | |
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`.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/history.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/history.zsh b/lib/history.zsh index aace78aa1..a8431fd5a 100644 --- a/lib/history.zsh +++ b/lib/history.zsh @@ -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 |
