Create zsh_history location if nonexistent

This commit is contained in:
2020-08-04 04:14:48 +02:00
parent 3e5db5fa8e
commit 5771a7d18f

View File

@@ -187,4 +187,5 @@ zle_highlight=('paste:none')
## History
HISTSIZE=1000000
SAVEHIST=1000000
[ -d "${XDG_DATA_HOME:-$HOME/.local/share}/zsh" ] || mkdir -p "${XDG_DATA_HOME:-$HOME/.local/share}/zsh"
HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/.zsh_history"