From faa392678ed90988bbef6714580bc78bf0aa135e Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Sun, 7 May 2023 20:32:59 +0100 Subject: [PATCH] Move zsh history to XDG data directory --- modules/shell/zsh/config.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/shell/zsh/config.zsh b/modules/shell/zsh/config.zsh index 03d42f9..08835d1 100644 --- a/modules/shell/zsh/config.zsh +++ b/modules/shell/zsh/config.zsh @@ -28,7 +28,7 @@ unsetopt GLOB_DOTS unsetopt NOMATCH ## History -HISTFILE="${XDG_CACHE_HOME:-${HOME}/.cache}/zsh/history" +HISTFILE="${XDG_DATA_HOME:-${HOME}/.local/share}/zsh/history" HISTSIZE=1000000 SAVEHIST=1000000 [[ !( -f "${HISTFILE}" ) ]] && mkdir -p $(dirname ${HISTFILE})