-
Notifications
You must be signed in to change notification settings - Fork 371
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
opam env
adds . to PATH in fish shell
#4078
Comments
Thanks for the report! |
I've encountered this issue since I prefer per-session switches so I though sharing my workaround to whoever finds this thread. I use a function to wrap switch activation (in
The recommended way to add paths to fish is to append paths to $fish_user_paths instead of directly setting the $PATH, but I don't know how well that meshes with cross-shell handling in opam. Adding a path would be usually done with |
When I execute
eval (opam env)
, I end up with.
in myPATH
.I think the problem is caused by an extra colon in the output of
opam env
:It results in:
opam config report
The text was updated successfully, but these errors were encountered: