-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OS X Installer script doesn't work with zsh #4990
Comments
On closer inspection, I realized that the installer does add the line in question to both however, the last line of my |
That's fixed in master, but needs backporting to 2.3 /cc @toonn |
I marked this as stale due to inactivity. → More info |
I believe this can be closed. The backport isn't necessary anymore since 2.4 has been released. |
Describe the bug
The installer for Mac OS writes this line to
~/.bash_profile
:However, Apple switched the default shell from
bash
tozsh
a couple years back. If you're using zsh like I am, you might restart your computer and then be unable to findnix-shell
, and the reason is because the installer wrote the above line in/.bash_profile
instead of~/.zshrc
It would be great if the installer detected the shell that was in use and update that.
Steps To Reproduce
zsh
usernix-env
,nix-shell
, etc are not in the$PATH
Expected behavior
It's expected that new terminal sessions have the nix commands in the
$PATH
The text was updated successfully, but these errors were encountered: