Clarify how to enable timestamps in history

(see also https://github.com/robbyrussell/oh-my-zsh/issues/6109 for further info)

The comment is not very clear about the fact that you need to also change the alias of `history` to display timestamps.
This commit is contained in:
Cristian Consonni 2018-01-31 17:25:05 +01:00 committed by GitHub
parent 37c2d0ddd7
commit 587eae2785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,8 @@ ZSH_THEME="robbyrussell"
# stamp shown in the history command output. # stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy" # HIST_STAMPS="mm/dd/yyyy"
# with this setting you need this alias (by default history is aliased to 'fc -l 1')
# alias history="fc -il 1"
# Would you like to use another custom folder than $ZSH/custom? # Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder # ZSH_CUSTOM=/path/to/new-custom-folder