mise
mise copied to clipboard
`env._.run`
similar to #1447, it should be possible to execute arbitrary scripts which "export" env vars like this:
[env]
_.run = "./myscript"
Where unlike in #1447, this would be run like any other binary. Somehow it needs to pull env vars out of it, I know that direnv has a trick where they launch direnv inside of this script and that is able to pull the env vars out. We'll need something like that to make this possible.
could the arbitrary script execute anything? I would like, for example, to automatically docker compose up
when I enter some projects' dir
this could replace (my use of) direnv
Would love to use this to load env vars from 1Password
Would be lovely for scripts execution, but for single commands as well, to have atomic commands too :pray:
Are there any plans to do this?
You're welcome to take it on