-
Notifications
You must be signed in to change notification settings - Fork 364
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
Run a task when entering a directory #2282
Comments
Was just thinking about this today; in my use case, I'd love to be able to install a base set of dependencies into a Python .venv, basically stuff that devs would need to work with the repo itself (thinking things like task runner libs, parsing libs, etc.). |
@jdx any thoughts around this one? I'm happy to pick it up as a first contribution, but wanted to spot-check whether or not you'd accept it as functionality before I start crackin' at it. |
I'm open to it, but I'm not sure how easy it would be. I don't think we have a mechanism to know when a directory is entered right now. I imagine This is also something that is only possible when not using shims, so we'd need to clearly document that. |
Cool. If nothing else, I'm interested in contributing, and it seems like a good -- albeit potentially thorny -- way to get my hands dirty and start feeling out how this all works. If I make any progress on it I'll give ya a shout! |
Hooks exists now! |
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 onmise
.The text was updated successfully, but these errors were encountered: