Replies: 2 comments
-
I have thought about something similar, but I think the benefits aren't worth the complexity. It can't work for args and env var configured tools though,
no, but they suffer the biggest downside that
this is probably not realistic, it'd need to be a hash of the path like we use for the tracked configs dir. |
Beta Was this translation helpful? Give feedback.
-
Not a problem. In that case I'll close it out. |
Beta Was this translation helpful? Give feedback.
-
Preface
I have no idea if this is a good idea. I just want to throw it out there and see if it resonates with people. Also although I think this is technically possible, I'm not 100% sure.
Motivation
When in one of my larger project directories I have 36 directories in my path:
I doubt there's a performance issue with this, but from an organisation perspective it feels a little messy.
Proposal
This proposes a feature that creates a folder per project directory with symlinks to mise tools. I'll call this symlink folder
mbin
(short for mise binaries) for the sake of this proposal. We wouldn't expect users to call these symlinks directly, or if they do, they shouldn't expect the mise environment to be configured, these aren't shims. These mbin paths can be added/removed from path like tool bin paths are today. For me, my paths would then look like this:36 down to 15, much more manageable.
Variant 1 - Inside a new mise data directory, e.g.
~/.local/share/mise/mbin/*
Variant 2 - Inside the directory (.venv/node_module) style e.g.
./.mbin
Arguably it doesn't make sense to keep executables in ~/.config so for the user config I would perhaps make that a special case and keep it somewhere else.
Beta Was this translation helpful? Give feedback.
All reactions