zsh: fix the guard variable for /etc/set-environment

This guard variable is written to $out/etc/zshenv using
here-documents, so we need to escape it.
This commit is contained in:
Lin Jian 2023-03-29 13:44:15 +08:00
parent 4929fad3c7
commit 43f45fe24f
No known key found for this signature in database
GPG Key ID: A6698D36434F75A5

View File

@ -71,7 +71,7 @@ if test -e /etc/NIXOS; then
else
emulate bash
alias shopt=false
if [ -z "$__NIXOS_SET_ENVIRONMENT_DONE" ]; then
if [ -z "\$__NIXOS_SET_ENVIRONMENT_DONE" ]; then
. /etc/set-environment
fi
unalias shopt