Fix infinite loop in omarchy-mise-install wrappers
exec via `mise exec "$package"` so the tool resolves from mise's install dir instead of by name through PATH. Previously `exec "$bin"` could re-find the wrapper itself when ~/.local/bin precedes mise's install path (e.g. when starship/zoxide clobber mise's PROMPT_COMMAND hook, #3685), recursing forever. Scoping to $package keeps lazy install and avoids leaking other runtimes into PATH.
This commit is contained in:
@@ -17,7 +17,7 @@ mkdir -p "$HOME/.local/bin"
|
|||||||
cat >"$HOME/.local/bin/$command" <<EOF
|
cat >"$HOME/.local/bin/$command" <<EOF
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
mise use -g "$package"
|
mise use -g "$package"
|
||||||
exec "$bin" "\$@"
|
exec mise exec "$package" -- "$bin" "\$@"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chmod +x "$HOME/.local/bin/$command"
|
chmod +x "$HOME/.local/bin/$command"
|
||||||
|
|||||||
Reference in New Issue
Block a user