all repos — archive/dotfiles @ 9e804f6fde15bcd94e46910e758a91e55502a881

Superseded by nixfiles

zsh: auto-create HISTFILE dir on startup
Alan Pearce alan@alanpearce.eu
Wed, 19 Dec 2018 22:30:54 +0100
commit

9e804f6fde15bcd94e46910e758a91e55502a881

parent

9ffb44641297d54a19983edd90b2d0d347970e36

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M zsh/.config/zsh/.zshrczsh/.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