From d2626b5fa583c217448f3bb211c2dd75f65401af Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 30 Nov 2017 20:44:12 +0000 Subject: [PATCH] Move history file to ~/.cache/zsh/histfile Also ensure that ~/.cache/zsh exists. --- zshenv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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