zsh: auto-create HISTFILE dir on startup
Alan Pearce alan@alanpearce.eu
Wed, 19 Dec 2018 22:30:54 +0100
1 files changed, 1 insertions(+), 0 deletions(-)
jump to
M zsh/.config/zsh/.zshrc → zsh/.config/zsh/.zshrc
@@ -6,6 +6,7 @@ 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