-
Notifications
You must be signed in to change notification settings - Fork 66
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
Switching to fish shell after running installer with zsh breaks PATH? #1053
Comments
Does anything change if you run fish via |
Thanks for getting back to me! If fish is set as my default shell - when I try to run those commands - it complains about fish not being in my path...lol:
However, I gave it the full path to the fish shell - hopefully this is still useful - and then printed the PATH variable:
And here is the second command, with the PATH:
And then combining the two of them:
Does the above tell you anything useful? |
Hi,
|
I have a macOS system, and am using this Nix template, which uses the Determinate Systems Nix installer =). (Disclaimer: I'm a Nix newbie - but I really wanted a declarative configuration for my machine, so here I am =)...)
However, I use
fish
as my shell, and am having all manner of issues getting the fish path to work correctly with Nix.I ran the installer was run with the default macOS zsh shell (since the plan was to install fish using Nix - so that all of the installation of packages and configuration could be done deterministically with Nix - so I basically wanted to run the installer from a basically untouched macOS system).
However, I'm now trying to use home-manager to configure fish, with atuin etc - and I get the following error messages whenever I open a new terminal with fish as the default shell. (Calling fish from within a zsh shell works - but I'm guessing that's because fish is inheriting the PATH environment variables from zsh).
I did try adding the following to my home-manager configuration - however, this did not fix the errors:
I saw from these earlier issues that fish support was added to both the NixOS official installer, and the Determinate Systems Nix installer quite some time back:
However, I'm guessing possibly my issue is caused by invoking the Nix installer from the default zsh shell, rather than installing fish first, is that right?
Is there some way of fixing it, so that the fish shell works properly with Nix?
The text was updated successfully, but these errors were encountered: