Skip to content

Commit 6f7903f

Browse files
mise shell detection bug when using nushell
1 parent 92a3e5f commit 6f7903f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

scripts/launch.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ else
9393
# Look for mise executable
9494
if command -v mise >/dev/null 2>&1; then
9595
>&2 echo "mise executable found at $(command -v mise), activating"
96-
eval "$($(command -v mise) env -s "$preferred_shell")"
96+
# mise env does not support all shells (e.g. nushell); fall back to bash
97+
case "$preferred_shell" in
98+
bash|zsh|fish|elvish|xonsh|pwsh) mise_shell="$preferred_shell" ;;
99+
*) mise_shell="bash" ;;
100+
esac
101+
eval "$($(command -v mise) env -s "$mise_shell")"
97102
export_stdlib_path "mise which elixir"
98103
else
99104
>&2 echo "mise not found"

0 commit comments

Comments
 (0)