diff options
author | Cristian Consonni <cristian@balist.es> | 2018-07-13 13:14:15 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2018-07-13 13:14:15 +0200 |
commit | d3e3b2dd0d7c7574d2a47c0d3a0d79583c58b2b8 (patch) | |
tree | ddd9d00fdd50512ee7c6873adb2baae969831a8b /lib/history.zsh | |
parent | f88396e3271b2459e92dfef37ed773fd01c446b8 (diff) | |
download | zsh-d3e3b2dd0d7c7574d2a47c0d3a0d79583c58b2b8.tar.gz zsh-d3e3b2dd0d7c7574d2a47c0d3a0d79583c58b2b8.tar.bz2 zsh-d3e3b2dd0d7c7574d2a47c0d3a0d79583c58b2b8.zip |
Add support for custom timestamp format in history (#6770)
Diffstat (limited to 'lib/history.zsh')
-rw-r--r-- | lib/history.zsh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/history.zsh b/lib/history.zsh index 7d4e59d00..62e02648b 100644 --- a/lib/history.zsh +++ b/lib/history.zsh @@ -23,7 +23,8 @@ case $HIST_STAMPS in "mm/dd/yyyy") alias history='omz_history -f' ;; "dd.mm.yyyy") alias history='omz_history -E' ;; "yyyy-mm-dd") alias history='omz_history -i' ;; - *) alias history='omz_history' ;; + "") alias history='omz_history' ;; + *) alias history="omz_history -t '$HIST_STAMPS'" ;; esac ## History file configuration |