From d1ee31378d68392c4e7dfe5fb7f8dc422990ee70 Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Tue, 2 Dec 2025 09:47:53 +0100 Subject: [PATCH] Fix Mise loading --- bash/.bashrc | 5 ----- bash/.profile | 1 + bash/.profile.d/java.sh | 3 ++- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/bash/.bashrc b/bash/.bashrc index 7ee516c..80ff3c5 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -183,8 +183,3 @@ alias stow='stow -d $DOTFILES ' if command -v starship > /dev/null 2>&1; then eval "$(starship init bash)" fi - -# Load Mise en dev -if command -v mise > /dev/null 2>&1; then - eval "$(mise activate bash)" -fi diff --git a/bash/.profile b/bash/.profile index b63673f..0a5cbba 100644 --- a/bash/.profile +++ b/bash/.profile @@ -39,6 +39,7 @@ export GOPATH="$HOME/.local/share/Go" export GOBIN="$GOPATH/bin" source "$HOME/.profile.d/homebrew.sh" +source "$HOME/.profile.d/mise.sh" source "$HOME/.profile.d/java.sh" appendpath() { diff --git a/bash/.profile.d/java.sh b/bash/.profile.d/java.sh index f6ad239..2807fc9 100755 --- a/bash/.profile.d/java.sh +++ b/bash/.profile.d/java.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash if command -v java > /dev/null 2>&1; then - export JAVA_HOME="$(dirname $(mise bin-paths | grep -i java))" + JAVA_HOME="$(dirname $(mise bin-paths | grep -i java))" + export JAVA_HOME fi