jdx / mise

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

Automatic disabling of mise or Creating a unique config in certain directories. #2687

Open Shobhit0109 opened 3 hours ago

Shobhit0109 commented 3 hours ago

In some projects, when using nix or any other mise can mess up paths.

Solution: According to me, this can be done using 2 ways:

  1. Using direnv to disable mise.
  2. Using local config to disable global config which contains all tools. (or Easy access to choose which to disable).
jdx commented 3 hours ago

I recommend replacing direnv with mise

Shobhit0109 commented 3 hours ago

I use mise as global manager now I want to enter a project containing nix flakes so i don't want mise to mess up paths of tools. As it contains .envrc file for auto-activation of nix flake, i suggest one of the solutions.

I think disabling global mise config & only allow tools from local config might be a good solution. As, it can be implemented without actually disabling mise, we just need to ignore global config maybe by using a single setting.