HIST_STAMPS
Oh My Zsh provides a wrapper for the
history
command. You can use this setting to decide whether to show a timestamp for each command in the history output.Valid values are:
"mm/dd/yyyy"
: for<month>/<day>/<year>
(12/31/2020)."dd.mm.yyyy"
: for<day>.<month>.<year>
(31.12.2020)."yyyy-mm-dd"
: for<year>-<month>-<day>
(2020-12-31).- Custom value: you can specify another format using the strftime format (for example,
"%d/%m/%Y"
for31/12/2020
).Example, if
HIST_STAMPS="dd.mm.yyyy"
:$ history -5 10001 10.10.2020 13:29 gd 10002 10.10.2020 13:29 z oh 10003 10.10.2020 13:29 gd 10004 10.10.2020 13:54 vsc /home/marc/code/ohmyzsh/wiki 10005 10.10.2020 14:36 history -5
1 Like