diff --git a/roles/home/zsh.nix b/roles/home/zsh.nix index fba3b5c..4e3b358 100644 --- a/roles/home/zsh.nix +++ b/roles/home/zsh.nix @@ -14,6 +14,11 @@ enableAutosuggestions = true; dotDir = ".config/zsh"; initExtra = '' + # avoid macOS updates to destroy nix + if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then + source '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' + fi + any-nix-shell zsh --info-right | source /dev/stdin source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh '';