refactor(nix/hm/price): better handle setting var for z.lua

This commit is contained in:
Price Hiller 2024-06-12 07:17:05 -05:00
parent 417921378a
commit c261326353
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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";