diff --git a/init.zsh b/init.zsh index 3d46694..8cc53ef 100644 --- a/init.zsh +++ b/init.zsh @@ -36,7 +36,7 @@ unsetopt beep notify # Some general, random configuration # History stuff [ -v HISTFILE ] || HISTFILE="${HOME}/.cache/zsh/history" -[ ! -d "$(dirname "${HISTFILE}")" ] && mkdir -p "$(dirname "${HISTFILE}")" +[ ! -d "${HISTFILE:h}" ] && mkdir -p "${HISTFILE:h}" HISTSIZE=1000 SAVEHIST=10000