From 9e804f6fde15bcd94e46910e758a91e55502a881 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 19 Dec 2018 22:30:54 +0100 Subject: zsh: auto-create HISTFILE dir on startup --- zsh/.config/zsh/.zshrc | 1 + 1 file changed, 1 insertion(+) (limited to 'zsh/.config') diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index e8458f8..18f04a9 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 -- cgit 1.4.1