diff options
| author | Miguel <m.i@gmx.at> | 2021-11-03 20:35:43 +0100 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2021-11-03 20:35:43 +0100 |
| commit | ddeab118d2c9a47901de0ac95940e7879809be39 (patch) | |
| tree | 3a9109913d0cb99bf97fc19050d72b3ca8dbb035 /zsh/dot-zshrc | |
| parent | f70d5dc9b1f546bcfae67f067fe2e3b67f94ca45 (diff) | |
ZSH config: source nix.sh before initializing modules
Diffstat (limited to 'zsh/dot-zshrc')
| -rw-r--r-- | zsh/dot-zshrc | 3 |
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)" |
