diff --git a/zshenv b/zshenv index 78cb2f7..cbaccce 100644 --- a/zshenv +++ b/zshenv @@ -3,7 +3,8 @@ # tty. This file will always be sourced. # Enable saving command history to file -HISTFILE=$HOME/.histfile +[ ! -d $HOME/.cache/zsh ] && mkdir -p $HOME/.cache/zsh +HISTFILE=$HOME/.cache/zsh/histfile HISTSIZE=5000 SAVEHIST=5000