1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

zsh: only run shell initialization in /etc/zshenv when RCs are enabled

This commit is contained in:
Sam 2024-11-07 20:29:35 -08:00
parent 4b3c0d353b
commit 5fbb7b7637
No known key found for this signature in database
GPG key ID: 07C4B9795517E3B4

View file

@ -136,6 +136,7 @@ in
if [ -n "''${__ETC_ZSHENV_SOURCED-}" ]; then return; fi
__ETC_ZSHENV_SOURCED=1
if [[ -o rcs ]]; then
if [ -z "''${__NIX_DARWIN_SET_ENVIRONMENT_DONE-}" ]; then
. ${config.system.build.setEnvironment}
fi
@ -146,6 +147,7 @@ in
done
${cfg.shellInit}
fi
# Read system-wide modifications.
if test -f /etc/zshenv.local; then