From 07ca7257da8b110e6d5eb0579dd37204f9d3f424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Almir=20Saraj=C4=8Di=C4=87?= Date: Wed, 18 Sep 2024 17:12:50 +0200 Subject: [PATCH] Try again --- priv/static/Linux.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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