We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1dce23a commit 757723cCopy full SHA for 757723c
1 file changed
setup.sh
@@ -19,7 +19,19 @@ fi
19
20
echo "Activate Mise environment and install"
21
~/.local/bin/mise trust .mise.toml
22
-eval "$(~/.local/bin/mise activate bash)"
+# Detect user shell for Mise activation
23
+if [ -n "${BASH_VERSION:-}" ]; then
24
+ SHELL_TYPE="bash"
25
+elif [ -n "${ZSH_VERSION:-}" ]; then
26
+ SHELL_TYPE="zsh"
27
+elif [ -n "${FISH_VERSION:-}" ]; then
28
+ SHELL_TYPE="fish"
29
+else
30
+ SHELL_TYPE="sh"
31
+fi
32
+
33
+# Activate Mise environment for detected shell
34
+eval "$(~/.local/bin/mise activate "$SHELL_TYPE")"
35
mise install
36
echo $PATH
37
ls -lah ~/.local/share/mise/installs
0 commit comments