Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
almirsarajcic committed Sep 18, 2024
1 parent 25b6a59 commit 07ca725
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions priv/static/Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ case $current_shell in
;;
esac

is_interactive_shell() {
is_non_interactive_shell() {
case $- in
*i*) return 0 ;;
*) return 1 ;;
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 07ca725

Please sign in to comment.