Closed crcastle closed 2 months ago
Installing https://github.com/oh-my-fish/plugin-foreign-env seems to have resolved the problem. Apologies if I missed somewhere that fenv
was a requirement. If not, please add it to the docs!
We don't place that file (~/.config/fish/conf.d/nix.fish
), and the only shell profiles we install are from upstream which doesn't mentionfenv
at all: https://github.com/NixOS/nix/blob/master/scripts/nix-profile-daemon.fish.in
Are you sure you're not using something like nix-darwin (or used it in the past)?
Yep, prior use of nix-darwin was probably the culprit. It looks like I didn't notice it before using the nix installer because that fenv ...
statement is enclosed within if test -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
, so prior to the /nix
directory be (re)added, it never was executed.
Apologies for the false alarm. Closing.
It seems that the v0.24.0 MacOS installer using fish shell requires something called
fenv
. This is not a standard part of the fish shell, but it seems as though what is installed assumes it is.It looks like the nix install is looking for this: https://github.com/oh-my-fish/plugin-foreign-env but I am not totally sure.
My fish shell version is 3.7.1.
Now every time I hit enter in my shell, I get the following error between command prompts: