From f6e5a5792ad1fefd9cb73bbd0dd39e12b6053ebe Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Tue, 11 Apr 2023 14:57:14 +0200 Subject: Add the java path configurations for jdk/gradle --- .bash_profile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to '.bash_profile') diff --git a/.bash_profile b/.bash_profile index 0fa8f19..4829594 100644 --- a/.bash_profile +++ b/.bash_profile @@ -99,11 +99,6 @@ 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 @@ -129,3 +124,10 @@ fi # ==== MISC CowSay fortune | cowsay | lolcat + +# ==== Work config =========================================================== +# ==== JAVA config +if command -v java 1>/dev/null 2>&1; then + export PATH="/opt/homebrew/opt/openjdk@11/bin:$PATH" + export PATH="/opt/homebrew/opt/gradle@6/bin:$PATH" +fi -- cgit v1.2.3