summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--zsh/.config/zsh/.zshrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
index e8458f8e..18f04a92 100644
--- a/zsh/.config/zsh/.zshrc
+++ b/zsh/.config/zsh/.zshrc
@@ -6,6 +6,7 @@ autoload -Uz _zplugin
 HISTSIZE=10000
 SAVEHIST=20000
 HISTFILE=${XDG_CACHE_HOME:=$HOME/.cache}/zsh/history
+[[ -d ${HISTFILE:h} ]] || mkdir -p ${HISTFILE:h}
 setopt extended_history
 setopt hist_save_no_dups
 setopt hist_ignore_space