refactor(nix/hm/price): better handle setting var for z.lua
This commit is contained in:
parent
417921378a
commit
c261326353
@ -17,8 +17,7 @@ init() {
|
|||||||
|
|
||||||
FPATH="${FPATH}:${wkdir}/nix-zsh-completions"
|
FPATH="${FPATH}:${wkdir}/nix-zsh-completions"
|
||||||
|
|
||||||
export _ZL_DATA="${XDG_CACHE_HOME}/zlua"
|
export _ZL_DATA="${_ZL_DATA:-"$XDG_CACHE_HOME/zlua"}"
|
||||||
touch "${_ZL_DATA}"
|
|
||||||
eval "$(lua "${wkdir}/z.lua/z.lua" --init zsh enhanced once)"
|
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"
|
[[ -r "${XDG_CONFIG_HOME}/fzf/fzf.zsh" ]] && source "${XDG_CONFIG_HOME}/fzf/fzf.zsh"
|
||||||
|
@ -148,6 +148,7 @@ in
|
|||||||
} // softLinkDots ".config";
|
} // softLinkDots ".config";
|
||||||
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
|
_ZL_DATA = "${config.xdg.cacheHome}/zlua";
|
||||||
RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
|
RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
|
||||||
CARGO_HOME = "${config.xdg.dataHome}/cargo";
|
CARGO_HOME = "${config.xdg.dataHome}/cargo";
|
||||||
OMNISHARPHOME = "${config.xdg.configHome}/omnisharp";
|
OMNISHARPHOME = "${config.xdg.configHome}/omnisharp";
|
||||||
|
Loading…
Reference in New Issue
Block a user