about summary refs log tree commit diff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@gmail.com>2014-01-31 16:53:28 -0600
committerThomas Tuegel <ttuegel@gmail.com>2014-01-31 16:53:28 -0600
commit6a756af3e7a50c22a45f7d958657527ac47d2902 (patch)
treee9ecad34509fa60d252c2d7572df1e1374dc5f8b /nixos/modules/programs
parent62e78f6b23a9dd77411e8ffd5adcf6bd1083cd50 (diff)
downloadnixlib-6a756af3e7a50c22a45f7d958657527ac47d2902.tar
nixlib-6a756af3e7a50c22a45f7d958657527ac47d2902.tar.gz
nixlib-6a756af3e7a50c22a45f7d958657527ac47d2902.tar.bz2
nixlib-6a756af3e7a50c22a45f7d958657527ac47d2902.tar.lz
nixlib-6a756af3e7a50c22a45f7d958657527ac47d2902.tar.xz
nixlib-6a756af3e7a50c22a45f7d958657527ac47d2902.tar.zst
nixlib-6a756af3e7a50c22a45f7d958657527ac47d2902.zip
zsh: don't clobber the environment of non-login shells
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r--nixos/modules/programs/zsh/zsh.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/programs/zsh/zsh.nix b/nixos/modules/programs/zsh/zsh.nix
index cff751934d7d..69a56ff69a0d 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}