You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The installer appends the nix source imports directly to the end of the .zshrc file. When I run the installer on macOS 11.4 with a .zshrc file that doesn't end with a newline, the installer creates a zsh syntax error because my file ends with a fi, so my last line starts with:
Create a macOS EC2 instance with the macOS 11.4 image: ami-0b3c31b0c66a46614
Ensure your ~/.zshrc file doesn't end in a newline
Run the installer in single-user mode:
sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume
Open a new terminal session
See error
Expected behavior
The installer handles .zshrc files that don't end in a newline. I realize that well-behaved unix text files should end with a newline, but the AWS EC2 image doesn't. Adding a newline before appending the source loading is a small price to pay.
The text was updated successfully, but these errors were encountered:
I think this is the same case described in #4990 and according to #4990 (comment) there's a fix in master already that isn't backported to 2.3. If you try the numtide installer I mentioned in #4779 (comment), can you confirm that you don't see this behavior?
Describe the bug
The installer appends the nix source imports directly to the end of the
.zshrc
file. When I run the installer on macOS 11.4 with a.zshrc
file that doesn't end with a newline, the installer creates azsh
syntax error because my file ends with afi
, so my last line starts with:If you have a problem with a specific package or NixOS,
you probably want to file an issue at https://github.com/NixOS/nixpkgs/issues.
Steps To Reproduce
ami-0b3c31b0c66a46614
~/.zshrc
file doesn't end in a newlineExpected behavior
The installer handles
.zshrc
files that don't end in a newline. I realize that well-behaved unix text files should end with a newline, but the AWS EC2 image doesn't. Adding a newline before appending the source loading is a small price to pay.The text was updated successfully, but these errors were encountered: