You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prior to this change, the default behaviour of `opam init` was to
register a shell hook which ran before each command, and added/moved the
bin dir from the current opam switch to the beginning of the PATH
variable. If a user has a custom bin directory at the beginning of their
PATH containing an executable with the same name as an executable in
their current opam switch, the executable in the opam switch will take
precedence.
This commit changes the behaviour of the shell hook to update the
existing opam switch in PATH in place rather than prepending it, so the
precedence of the opam switch relative to other dirs in PATH is
preserved.
This change doesn't affect the behaviour of running `eval $(opam env)`.
Fixes#6815
Signed-off-by: Stephen Sherratt <stephen@sherra.tt>
0 commit comments