Plans to choose an official package/project manager?

Very interesting, I hadn’t realised opam switch link worked like that. I’ve switched over to using that today and so far it works nicely, with Emacs and shells picking up the right thing.

The only curiosity is I have a stray /Users/tim/.opam/4.10.1/bin in my path but the local switch for my current directory is earlier in the list so takes precedence. Is there a default switch that gets set? Ideally I would want no switch to exist unless explicitly set.

I still need .direnv for other things but this is a welcome improvement.

1 Like

The default switch is set by ~/.opam/opam-init/variables.sh, which is modified whenever you call opam switch. I guess you could modify ~/.opam/opam-init/init.sh, so that it does not invoke variables.sh.

1 Like