jdx / mise

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

Run a task when entering a directory #2282

Open rmgpinto opened 3 weeks ago

rmgpinto commented 3 weeks ago

I've checked the docs and I'm not 100% sure if this use-case is covered:

I want to automatically run a task (ie: tmuxinator start) when I enter a directory that has a .mise.toml file. It's useful to create/restore a tmux session with the configured layout everytime I switch to a project directory. I currently use direnv to achieve this and wanted to just rely on mise.