Skip to content
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

nix shell gives a weird PATH that makes .nix-profile/bin take precedence over dirs added by the shell #1175

Open
YPares opened this issue Sep 17, 2024 · 0 comments

Comments

@YPares
Copy link

YPares commented 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 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.

@YPares YPares changed the title nix shell gives a weird PATH nix shell gives a weird PATH that makes .nix-profile/bin take precedence over dirs added by the shell Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant