Sets sane history options.
By default, the history is set to be saved in ${ZDOTDIR:-${HOME}}/.zhistory.
The file path can be customized with:
HISTFILE=/path/to/.zsh_history
BANG_HISTperforms csh-style '!' expansion.SHARE_HISTORYcauses all terminals to share the same history 'session'.HIST_IGNORE_DUPSdoes not enter immediate duplicates into the history.HIST_IGNORE_ALL_DUPSremoves older command from the history if a duplicate is to be added.HIST_IGNORE_SPACEremoves commands from the history that begin with a space.HIST_SAVE_NO_DUPSommits older commands that duplicate newer ones when saving.HIST_VERIFYdoesn't execute the command directly upon history expansion.
history-statlists the 10 most used commands