diff --git a/history.zsh b/history.zsh index 6cfecb1..eb4bb7c 100644 --- a/history.zsh +++ b/history.zsh @@ -3,6 +3,8 @@ HISTSIZE=10000000 SAVEHIST=10000000 HISTDUP=erase +[ ! -d "$HOME/.cache/zsh" ] && mkdir -p "$HOME/.cache/zsh" + setopt BANG_HIST # Treat the '!' character specially during expansion. setopt EXTENDED_HISTORY # Write the history file in the ":start:elapsed;command" format. setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits.