From 72de94eb3a1c15c6bafb17ef874a08254b6d9767 Mon Sep 17 00:00:00 2001 From: sev Date: Mon, 21 Aug 2023 12:27:45 -0500 Subject: [PATCH] zsh: export XDG_CACHE_HOME --- etc/zsh/.zprofile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/zsh/.zprofile b/etc/zsh/.zprofile index ec88809..d9c05b3 100644 --- a/etc/zsh/.zprofile +++ b/etc/zsh/.zprofile @@ -195,7 +195,9 @@ if [[ ! -v _sev_setup_xdg ]] { mkdir -m760 ~/.local/state } - if [[ ! -v XDG_CACHE_HOME ]] { + if [[ -v XDG_CACHE_HOME ]] { + export XDG_CACHE_HOME + } else { if [[ -v _sev_tmp ]] { export XDG_CACHE_HOME=$_sev_tmp/.xdg.cache [[ -e $XDG_CACHE_HOME ]] || mkdir -m700 $XDG_CACHE_HOME -- 2.47.0