From 4a33a91c692acfe16436bb9dc057f12b32ec2be2 Mon Sep 17 00:00:00 2001 From: Nathan Shelly Date: Wed, 21 Oct 2020 15:38:22 -0700 Subject: [PATCH] source nix-daemon initialization manually --- zsh/zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zsh/zshrc b/zsh/zshrc index 8f292118c..b1fc9683a 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -21,6 +21,12 @@ return 1 } +# source nix initialization script if `nix-env` is not active in the environment +# TODO: figure out cleaner solution to avoid issues when `/etc/zshrc` is moved +command -v nix-env > /dev/null || { + . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' +} + "$DOTFILES/infra/scripts/component_enabled.sh" 'zsh' || return 0 source "$DOTFILES/zsh/path.zsh"