1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-16 05:18:17 +00:00

Merge pull request #1154 from Samasaur1/zshenv-rcs

zsh: only run shell initialization in /etc/zshenv when RCs are enabled
This commit is contained in:
Michael Hoang 2024-11-09 08:22:06 +00:00 committed by GitHub
commit 3224bb2f7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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