all repos — nixfiles @ 9e804f6fde15bcd94e46910e758a91e55502a881

System and user configuration, managed by nix and home-manager

zsh: auto-create HISTFILE dir on startup

Alan Pearce
commit

9e804f6fde15bcd94e46910e758a91e55502a881

parent

9ffb44641297d54a19983edd90b2d0d347970e36

1 file changed, 1 insertion(+), 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