summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zsh/dot-zshrc3
1 files changed, 2 insertions, 1 deletions
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)"