Merge pull request #197536 from eigengrau/zsh-init-no-unset
nixos/zsh: don’t be noisy when scripts are run with -u
This commit is contained in:
@@ -173,10 +173,10 @@ in
|
|||||||
# This file is read for all shells.
|
# This file is read for all shells.
|
||||||
|
|
||||||
# Only execute this file once per shell.
|
# Only execute this file once per shell.
|
||||||
if [ -n "$__ETC_ZSHENV_SOURCED" ]; then return; fi
|
if [ -n "''${__ETC_ZSHENV_SOURCED-}" ]; then return; fi
|
||||||
__ETC_ZSHENV_SOURCED=1
|
__ETC_ZSHENV_SOURCED=1
|
||||||
|
|
||||||
if [ -z "$__NIXOS_SET_ENVIRONMENT_DONE" ]; then
|
if [ -z "''${__NIXOS_SET_ENVIRONMENT_DONE-}" ]; then
|
||||||
. ${config.system.build.setEnvironment}
|
. ${config.system.build.setEnvironment}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -206,7 +206,7 @@ in
|
|||||||
${zshStartupNotes}
|
${zshStartupNotes}
|
||||||
|
|
||||||
# Only execute this file once per shell.
|
# 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
|
__ETC_ZPROFILE_SOURCED=1
|
||||||
|
|
||||||
# Setup custom login shell init stuff.
|
# Setup custom login shell init stuff.
|
||||||
|
|||||||
Reference in New Issue
Block a user