From 6a756af3e7a50c22a45f7d958657527ac47d2902 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Fri, 31 Jan 2014 16:53:28 -0600 Subject: [PATCH] zsh: don't clobber the environment of non-login shells --- nixos/modules/programs/zsh/zsh.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/programs/zsh/zsh.nix b/nixos/modules/programs/zsh/zsh.nix index cff751934d7..69a56ff69a0 100644 --- a/nixos/modules/programs/zsh/zsh.nix +++ b/nixos/modules/programs/zsh/zsh.nix @@ -116,8 +116,9 @@ in # This file is read for all shells. # Only execute this file once per shell. + # But don't clobber the environment of interactive non-login children! if [ -n "$__ETC_ZSHENV_SOURCED" ]; then return; fi - __ETC_ZSHENV_SOURCED=1 + export __ETC_ZSHENV_SOURCED=1 ${cfg.shellInit}