From 2f462379811e0c6cd6a02c7ec684a0dce31309ad Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 26 Dec 2023 15:54:30 -0600 Subject: [PATCH] refactor(zsh): export HISTFILE to XDG_DATA_HOME by default --- dots/.config/zsh/config/profile/profile/options.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.config/zsh/config/profile/profile/options.zsh b/dots/.config/zsh/config/profile/profile/options.zsh index 0925d571..964b0148 100644 --- a/dots/.config/zsh/config/profile/profile/options.zsh +++ b/dots/.config/zsh/config/profile/profile/options.zsh @@ -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