From 43f45fe24fd9cce3c9011c5f53cfddbe979abd39 Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Wed, 29 Mar 2023 13:44:15 +0800 Subject: [PATCH] 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. --- pkgs/shells/zsh/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/shells/zsh/default.nix b/pkgs/shells/zsh/default.nix index 3a5a83ad1f8c..18fa69c60427 100644 --- a/pkgs/shells/zsh/default.nix +++ b/pkgs/shells/zsh/default.nix @@ -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