diff --git a/users/price/dots/.config/zsh/config/plugins/init.zsh b/users/price/dots/.config/zsh/config/plugins/init.zsh index 3d773f3e..7d53754a 100644 --- a/users/price/dots/.config/zsh/config/plugins/init.zsh +++ b/users/price/dots/.config/zsh/config/plugins/init.zsh @@ -17,8 +17,7 @@ init() { FPATH="${FPATH}:${wkdir}/nix-zsh-completions" - export _ZL_DATA="${XDG_CACHE_HOME}/zlua" - touch "${_ZL_DATA}" + export _ZL_DATA="${_ZL_DATA:-"$XDG_CACHE_HOME/zlua"}" eval "$(lua "${wkdir}/z.lua/z.lua" --init zsh enhanced once)" [[ -r "${XDG_CONFIG_HOME}/fzf/fzf.zsh" ]] && source "${XDG_CONFIG_HOME}/fzf/fzf.zsh" diff --git a/users/price/home.nix b/users/price/home.nix index bdefd2b6..637a3cf4 100644 --- a/users/price/home.nix +++ b/users/price/home.nix @@ -148,6 +148,7 @@ in } // softLinkDots ".config"; sessionVariables = { + _ZL_DATA = "${config.xdg.cacheHome}/zlua"; RUSTUP_HOME = "${config.xdg.dataHome}/rustup"; CARGO_HOME = "${config.xdg.dataHome}/cargo"; OMNISHARPHOME = "${config.xdg.configHome}/omnisharp";