diff --git a/priv/static/Linux.sh b/priv/static/Linux.sh index 5327901c..d7cd1104 100755 --- a/priv/static/Linux.sh +++ b/priv/static/Linux.sh @@ -41,7 +41,7 @@ case $current_shell in ;; esac -is_interactive_shell() { +is_non_interactive_shell() { case $- in *i*) return 0 ;; *) return 1 ;; @@ -92,14 +92,14 @@ function install() { case $current_shell in "bash" | "rbash") - if is_interactive_shell; then + if is_non_interactive_shell; then echo "eval \"\$(~/.local/bin/mise activate bash --shims)\"" >>$config_file fi echo "eval \"\$(~/.local/bin/mise activate bash)\"" >>$config_file ;; "zsh") - if is_interactive_shell; then + if is_non_interactive_shell; then echo "eval \"\$(~/.local/bin/mise activate zsh --shims)\"" >>$config_file fi