From 241ea118b204f941119d6bd5f381b52b49ba0fa3 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Tue, 11 Apr 2023 11:17:21 +0200 Subject: Add JAVA to the path if it's installed --- .bash_profile | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.bash_profile') diff --git a/.bash_profile b/.bash_profile index 9cae301..0fa8f19 100644 --- a/.bash_profile +++ b/.bash_profile @@ -99,6 +99,11 @@ if [ -d $HOME/.nvm ]; then source $(brew --prefix nvm)/nvm.sh fi +# ==== JAVA config +if command -v java 1>/dev/null 2>&1; then + export PATH="/opt/homebrew/opt/openjdk/bin:$PATH" +fi + # ==== MISC config if command -v thefuck 1>/dev/null 2>&1; then # allow fuck to be alias of thefuck -- cgit v1.2.3