Skip to content
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

No opam init hook eval when .envrc from direnv #5486

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonahbeckford
Copy link
Contributor

Stops https://direnv.net/ and opam init hooks from conflicting. With this commit, either direnv runs, or opam init hooks run. Explicit .envrc in a directory (aka. direnv is present) has higher precedence.

Tested:

  • fish
  • zsh
  • sh (bash)
  • csh - Only partial testing. I tested the expression within the csh precmd for correctness in an Ubuntu container, but I don't know how to get precmds to work. Would appreciate if someone with a working csh can test

- Stops https://direnv.net/ and opam hooks from conflicting.
  With this commit, either direnv runs, or opam hooks run.
  Explicit .envrc in a directory (aka. direnv is present)
  has higher precedence.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant