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:
husamemadH
2026-07-23 11:26:32 +03:00
parent 1b6ab15331
commit 4480a14236
+1 -1
View File
@@ -17,7 +17,7 @@ mkdir -p "$HOME/.local/bin"
cat >"$HOME/.local/bin/$command" <<EOF
#!/bin/bash
mise use -g "$package"
exec "$bin" "\$@"
exec mise exec "$package" -- "$bin" "\$@"
EOF
chmod +x "$HOME/.local/bin/$command"