summaryrefslogtreecommitdiffstats
path: root/.bash_profile
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2023-04-11 11:17:21 +0200
committerAhmed Abdelhalim <[email protected]>2023-04-11 11:17:21 +0200
commit241ea118b204f941119d6bd5f381b52b49ba0fa3 (patch)
tree24cc57fef7e5736b8a516feb560c139b62c64ab1 /.bash_profile
parente2d49946cfc3c0bf643c4d6435e74c5c94b7fe85 (diff)
Add JAVA to the path if it's installed
Diffstat (limited to '.bash_profile')
-rw-r--r--.bash_profile5
1 files changed, 5 insertions, 0 deletions
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