This is an old revision of the document!
Mostly copied from https://scriptingosx.com/2019/06/moving-to-zsh-part-3-shell-options/
Put into ~/.zshrc
PROMPT='%(?.%F{green}√.%F{red}?%?)%K{81} %B%~ %#%b '
* History:
HISTFILE=${ZDOTDIR:-$HOME}/.zsh_history
setopt EXTENDED_HISTORY
SAVEHIST=5000
HISTSIZE=2000
# share history across multiple zsh sessions
setopt SHARE_HISTORY
# append to history
setopt APPEND_HISTORY
# adds commands as they are typed, not at shell exit
setopt INC_APPEND_HISTORY
# expire duplicates first
setopt HIST_EXPIRE_DUPS_FIRST
# do not store duplications
setopt HIST_IGNORE_DUPS
#ignore duplicates when searching
setopt HIST_FIND_NO_DUPS
# removes blank lines from history
setopt HIST_REDUCE_BLANKS
setopt NO_CASE_GLOB setopt GLOB_COMPLETE