jdx / mise

dev tools, env vars, task runner
https://mise.jdx.dev
MIT License
10.14k stars 292 forks source link

Source file only if present #3053

Open pikeas opened 2 days ago

pikeas commented 2 days ago

Long-time asdf+direnv user trying to migrate to mise. I have many projects with a .envrc file. Direnv automatically runs this file when present.

Describe the bug Mise does not automatically run .envrc.

To Reproduce Create [project]/.envrc, ensure that mise is active, then cd into [project].

Expected behavior Mise should source .envrc.

I tried _.source in ~/.config/mise/config.toml, but this throws an error when .envrc is absent.

I also tried _.file, but this does not work for executable scripts.

This will work with a project-level Mise config, but it would be better if everything Just Worked as a drop-in replacement.

jdx commented 2 days ago

I don't understand how this is a bug