summaryrefslogtreecommitdiff
path: root/modules/programs/zsh/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/programs/zsh/default.nix')
-rw-r--r--modules/programs/zsh/default.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/programs/zsh/default.nix b/modules/programs/zsh/default.nix
index 58a3155..7574f8e 100644
--- a/modules/programs/zsh/default.nix
+++ b/modules/programs/zsh/default.nix
@@ -124,14 +124,13 @@ 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
- export __ETC_ZSHENV_SOURCED=1
+ if [ -n "''${__ETC_ZSHENV_SOURCED-}" ]; then return; fi
+ __ETC_ZSHENV_SOURCED=1
# Don't execute this file when running in a pure nix-shell.
if test -n "$IN_NIX_SHELL"; then return; fi
- if [ -z "$__NIX_DARWIN_SET_ENVIRONMENT_DONE" ]; then
+ if [ -z "''${__NIX_DARWIN_SET_ENVIRONMENT_DONE-}" ]; then
. ${config.system.build.setEnvironment}
fi
@@ -153,7 +152,7 @@ in
# This file is read for login shells.
# Only execute this file once per shell.
- if [ -n "$__ETC_ZPROFILE_SOURCED" ]; then return; fi
+ if [ -n "''${__ETC_ZPROFILE_SOURCED-}" ]; then return; fi
__ETC_ZPROFILE_SOURCED=1
${concatStringsSep "\n" zshVariables}