refactor(zsh): export HISTFILE to XDG_DATA_HOME by default

This commit is contained in:
Price Hiller 2023-12-26 15:54:30 -06:00
parent bf75a909cb
commit 2f46237981
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -2,7 +2,7 @@
export SAVEHIST=10000
export HISTSIZE=10000
export HISTFILE="${HOME}/.zsh_history"
export HISTFILE="${XDG_CACHE_HOME:-"$HOME"}/zsh_history"
setopt INC_APPEND_HISTORY
setopt SHARE_HISTORY
setopt EXTENDED_HISTORY