From ddeab118d2c9a47901de0ac95940e7879809be39 Mon Sep 17 00:00:00 2001 From: Miguel Date: Wed, 3 Nov 2021 20:35:43 +0100 Subject: ZSH config: source nix.sh before initializing modules --- zsh/dot-zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'zsh') diff --git a/zsh/dot-zshrc b/zsh/dot-zshrc index d116b4a..afe2d14 100644 --- a/zsh/dot-zshrc +++ b/zsh/dot-zshrc @@ -96,6 +96,8 @@ ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets) # Initialize modules # ------------------ +[ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ] && source "$HOME/.nix-profile/etc/profile.d/nix.sh" + if [[ ! ${ZIM_HOME}/init.zsh -nt ${ZDOTDIR:-${HOME}}/.zimrc ]]; then # Update static initialization script if it does not exist or it's outdated, before sourcing it source ${ZIM_HOME}/zimfw.zsh init -q @@ -218,7 +220,6 @@ export PATH=$HOME/.local/bin:$PATH [ -f "$HOME/.zshrc.local" ] && source "$HOME/.zshrc.local" [ -f "$HOME/.cargo/env" ] && source "$HOME/.cargo/env" [ -f "$HOME/.ghcup/env" ] && source "$HOME/.ghcup/env" -[ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ] && source "$HOME/.nix-profile/etc/profile.d/nix.sh" eval "$(direnv hook zsh)" -- cgit v1.2.3