-
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
mise hook_env and ignored_config_paths #3289
Comments
it probably can't work if you don't set it as an env var. I don't think this can be fixed so we should update the docs. |
I just tried setting the environment variable |
oh sorry, I misunderstood. The config does work for what it's designed to do: ignore any potential config files, however mise is still looking for files in those directories where it won't find anything because it's ignored. I think this function needs to be updated to not be looking at ignored paths: Lines 764 to 785 in 6569478
I will probably get around to this in a few days but you're welcome to contribute, I don't think it's a difficult change. |
Awesome, thanks so much! 🎉 |
At the moment,
mise hook-env
does not respectsettings.ignored_config_paths
, so it is impossible to prevent mise from automatically running this command in a shell in which mise is activated.This is problematic if mise runs slowly in a particular directory on your machine -- for example, because that directory is mounted over sshfs.
To Reproduce
Mount a directory over sshfs at, say,
/mnt/work
. Then:Expected behavior
Because the
/mnt
path is ignored,mise hook-env
should also quick-exit, rather than taking 600ms to show my prompt.mise doctor
outputThe text was updated successfully, but these errors were encountered: