-
Notifications
You must be signed in to change notification settings - Fork 19
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
Plugin does not set path properly. Preferences system binaries over nix installed ones. #19
Comments
This happens since the the plugin uses the normal Since this plugin is meant to provide a customizable working environment loading some rc file is pretty much required. Maybe the plugin could load a custom |
Yeah, it seems unfortunate to need to maintain a separate |
Yup this is affecting my work too. Subscribed to this thread and will pause using this plugin till we have a solution. Thank you for a great plugin hope this quirk has a solution. |
I ported this plugin to my mksh config and I don't have this issue. I think the issue arises because you, probably, set environment variables in zshrc. Setting your env vars in profile might be a solution which is what I do. Setting PATH in zprofile (or profile if zsh sources it) should fix the issue. |
Reading through the documentation |
Issue: system packages are being preferred while in nix shell.
Description: Here is the result of checking out my
PATH
.The
/nix/store/
binaries are under my system binaries. This does not happen when I remove the plugin. Here is the repeated example without the pluging.As you can see, the
nix/store/
binaries are at the top (as expected).One example of this being an issue is
Here is my zshrc file.
To reproduce:
Clone this repo.
run
./support/copy-tool-files.sh
enter
nix-shell
check your
PATH
(nice printing withtr : $'\n' <<<"$PATH"
)As you can see, this plugin is doing something to re-create the path in such a way that system bins are on top.
The text was updated successfully, but these errors were encountered: