Move history file to ~/.cache/zsh/histfile

Also ensure that ~/.cache/zsh exists.
This commit is contained in:
Kenneth Benzie 2017-11-30 20:44:12 +00:00
parent 37480288ae
commit d2626b5fa5

3
zshenv
View File

@ -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