-
Notifications
You must be signed in to change notification settings - Fork 7
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
Installing developer preview didn't set up PATH correctly on zsh #85
Comments
Quote @edwintorok:
|
There is also another problem: the way OPAM modifies the One way this could be fixed would be symlinking our developer preview as |
I agree. Another ugly solution is to create an empty switch global switch, but we can't ask people to do so in the name of "enjoying the full experience". I agree the About setting the PATH, I would be curious to see how others are doing (cargo, nvm, deno, etc). |
The empty global switch will not help, if someone |
You are right. My bias here is that, in my mind, if people move to a directory with the local |
REPOST FROM: ocaml/dune#10963 by @edwintorok
Expected Behavior
Actual Behavior
Reproduction
You can find my full ZSH config here:
https://gitlab.com/edwintorok/dotfiles/-/tree/master/zsh?ref_type=heads
However for the purposes of this bug you can repro it with:
opam install dune
echo 'return 0' >.zshrc
curl https://dune.ci.dev/install | bash
1.
zsh -l
dune --version
echo $PATH
Specifications
dune
(output ofdune --version
): 3.16.0ocaml
(output ofocamlc --version
): 5.2.0Additional information
Dune added this to my .zshrc, but that has no effect
If I instead I add it to
.zshenv
it is better, but still in the wrong place (opam takes precedence):The reason it doesn't work in
.zshrc
because mine ends like this:So I need to move the
export PATH
before the 'return 0', so this works:The text was updated successfully, but these errors were encountered: