aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2025-10-12 11:06:09 -0400
committerEugene Triguba <hello@eugenetriguba.com>2025-10-12 11:10:32 -0400
commitcaa1019b507c490912b40073cba5fb2d1ab6b97b (patch)
treec8506c6f5aa496508f3ce5f3219d7d8d0a4a5ca8
parentAdd auto push new branch to git config (diff)
downloaddotfiles-caa1019b507c490912b40073cba5fb2d1ab6b97b.zip
Add java config to zsh
-rw-r--r--zsh/.zsh/languages.sh14
-rw-r--r--zsh/.zsh/path.sh3
2 files changed, 12 insertions, 5 deletions
diff --git a/zsh/.zsh/languages.sh b/zsh/.zsh/languages.sh
index afaf272..0521807 100644
--- a/zsh/.zsh/languages.sh
+++ b/zsh/.zsh/languages.sh
@@ -1,5 +1,11 @@
#!/usr/bin/env zsh
+# Homebrew
+eval "$(brew shellenv)"
+export LDFLAGS="-L/opt/homebrew/lib"
+export CPPFLAGS="-I/opt/homebrew/include"
+export LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib"
+
# Go
export GOPATH="$SRC_DIR/go"
export GOBIN="$SRC_DIR/go/bin"
@@ -22,6 +28,9 @@ source "$HOME/.cargo/env"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
+# Java
+export JAVA_HOME=$(/usr/libexec/java_home -v 24)
+
# PNPM
export PNPM_HOME="/Users/eugene/Library/pnpm"
case ":$PATH:" in
@@ -29,8 +38,3 @@ case ":$PATH:" in
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
-# Homebrew
-eval "$(brew shellenv)"
-export LDFLAGS="-L/opt/homebrew/lib"
-export CPPFLAGS="-I/opt/homebrew/include"
-export LIBRARY_PATH="$LIBRARY_PATH:$(brew --prefix)/lib"
diff --git a/zsh/.zsh/path.sh b/zsh/.zsh/path.sh
index d000618..b7150c2 100644
--- a/zsh/.zsh/path.sh
+++ b/zsh/.zsh/path.sh
@@ -4,3 +4,6 @@ export PATH="$BIN_DIR:$PATH"
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.poetry/bin:$PATH"
export PATH="/opt/homebrew/opt/curl/bin:$PATH"
+
+export PATH="/opt/homebrew/opt/openjdk@24/bin:$PATH"
+export CPPFLAGS="-I/opt/homebrew/opt/openjdk@24/include"