-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 17 replies
-
long and the short - is there a way to active mise, without modifying source <(mise activate zsh) && export PATH="$(__calling_my_path_builder_function_again)" |
Beta Was this translation helpful? Give feedback.
-
If you run activate without sourcing you can see this function that sources the result of hook-env: _mise_hook() {
eval "$(/Users/simon/.local/bin/mise hook-env -s zsh)";
} This is what sets the path, and this function is called in a few places. So this is where you need to apply your You could save that entire output down to a file like _mise_hook() {
eval "$(/Users/simon/.local/bin/mise hook-env -s zsh | grep --invert-match --extended-regexp '^export PATH=')";
} Then source it instead: source my-local-zsh-activate.zsh Or skip the separate file and edit it on the fly with sed: source <(mise activate zsh | grep --invert-match --extended-regexp '^export PATH=' | sed "s/hook-env -s zsh/hook-env -s zsh | grep --invert-match --extended-regexp '^export PATH='/g") |
Beta Was this translation helpful? Give feedback.
-
what does this mean? |
Beta Was this translation helpful? Give feedback.
-
Resume:
|
Beta Was this translation helpful? Give feedback.
Resume:
source <(mise activate zsh --shims)
only adds the shim directory to PATH and nothing more, if you add MISE_SHIMS into PATH manually, there is no need to call activate with --shims flagsource <(mise activate zsh)
adds its entries at the begining of PATH, if you need full control over entries order in your PATH, you should callsource <(mise activate zsh)
in place where your PATH built