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
It seems my PATH contains several times the same folders when I'm a nix shell (whether I'm using nix-shell or nix shell).
Notably, /home/<my_user>/.nix-profile/bin and /nix/var/nix/profiles/default/bin are present each 3 times in the PATH, and the problem is that they override the folders added by the nix shell itself. That means I'm not accessing what I want from the shell, I'm accessing my user-wide profile bins.
The text was updated successfully, but these errors were encountered:
YPares
changed the title
nix shell gives a weird PATHnix shell gives a weird PATH that makes .nix-profile/bin take precedence over dirs added by the shell
Sep 17, 2024
I used the latest nix-installer.
It seems my PATH contains several times the same folders when I'm a nix shell (whether I'm using
nix-shell
ornix shell
).Notably,
/home/<my_user>/.nix-profile/bin
and/nix/var/nix/profiles/default/bin
are present each 3 times in the PATH, and the problem is that they override the folders added by the nix shell itself. That means I'm not accessing what I want from the shell, I'm accessing my user-wide profile bins.The text was updated successfully, but these errors were encountered: