diff options
author | Lin Jian <me@linj.tech> | 2023-03-29 13:44:15 +0800 |
---|---|---|
committer | Lin Jian <me@linj.tech> | 2023-03-29 13:51:26 +0800 |
commit | 43f45fe24fd9cce3c9011c5f53cfddbe979abd39 (patch) | |
tree | 548b07210ff6b48d2534cd447000bccfbab7b7bd /pkgs/shells | |
parent | 4929fad3c7e11acfdb53d70cabf69f254000a54d (diff) |
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.
Diffstat (limited to 'pkgs/shells')
-rw-r--r-- | pkgs/shells/zsh/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/shells/zsh/default.nix b/pkgs/shells/zsh/default.nix index 3a5a83ad1f8c1..18fa69c604272 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 |