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
One of the main attractions of mise in a windows environment is that it isn't built around bash like, say, direnv is. Its polyglot ethos, positioning it as a sort of Switzerland allowing use of any OS or shell is a very welcome thing. One exception I ran into to that though, was running a command from a Tera template in a mise.local.toml file.
In general, running an arbitrary command from a template in mise.local.toml feels like a kludge I'd prefer to avoid, but it can be handy in a pinch. In my case, I wanted an environment variable to contain the hash of the latest commit in a git repository, so being able to stick a "git rev-parse" command in a template was handy.
In doing that, I saw that it was invoking bash in order to accomplish this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
One of the main attractions of mise in a windows environment is that it isn't built around bash like, say, direnv is. Its polyglot ethos, positioning it as a sort of Switzerland allowing use of any OS or shell is a very welcome thing. One exception I ran into to that though, was running a command from a Tera template in a mise.local.toml file.
In general, running an arbitrary command from a template in mise.local.toml feels like a kludge I'd prefer to avoid, but it can be handy in a pinch. In my case, I wanted an environment variable to contain the hash of the latest commit in a git repository, so being able to stick a "git rev-parse" command in a template was handy.
In doing that, I saw that it was invoking bash in order to accomplish this.
https://github.com/jdx/mise/blob/v2025.3.2/src/tera.rs#L327
On windows, bash is not necessarily present. Or if it is, running bash will likely involve spinning up a WSL virtual machine.
I'm hoping for a way to invoke a command in a way that does not create a project dependency on bash.
Allowing direct command invocation via syscall could be one way to do this.
Beta Was this translation helpful? Give feedback.
All reactions