Modifying shell activation script to resolve PATH issue in Nix installation #671
Closed
pedorich-n
started this conversation in
General
Replies: 2 comments 4 replies
-
we could exclude that logic from doing anything if it's installed to /nix |
Beta Was this translation helpful? Give feedback.
3 replies
-
Resolved in: #675 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
Context
I am using Nix installation of
rtx
, from nixpkgs.In Nix, packages are stored in the
/nix/store/...
directory, and they're symlinked to~/.nix-profile/bin/...
directory, and then the~/.nix-profile/bin/
folder is added to thePATH
variable.So for me, right now, the "real"
rtx
path is/nix/store/4gc4pzmzdliim6fd978diis8pnxlshal-rtx-1.32.2/bin/rtx
, and it's exposed in Nix profile folder:Problem
When
rtx
's shell activation script runs, it can't find thertx
binary inPATH
(because it looks for "real"/nix/store/...
path) and exposes it again.It's not a big problem, but it causes some inconvenience.
Is there a way to change this behavior? I am happy to help with the PR, but I couldn't think of a good way to solve this without breaking the program for people who have
rtx
installed viahttps://rtx.pub/install.sh
or just plain binary.Beta Was this translation helpful? Give feedback.
All reactions