Use manual JAVA_HOME setting instead of SDKMAN to manage jvm version

This commit is contained in:
Jeremy Dormitzer 2022-04-11 17:21:06 -04:00
parent 02717edb9a
commit 172953e7b7
3 changed files with 1 additions and 6 deletions

View File

@ -4,5 +4,6 @@ if [[ -f "/opt/homebrew/bin/brew" ]]; then
fi fi
export PATH="$PATH:/Users/jdormit/.local/bin" export PATH="$PATH:/Users/jdormit/.local/bin"
eval "$(pyenv init --path)" eval "$(pyenv init --path)"
[[ -d "/opt/homebrew/opt/openjdk@17" ]] && export JAVA_HOME="/opt/homebrew/opt/openjdk@17"
export SYSTEM_VERSION_COMPAT=1 export SYSTEM_VERSION_COMPAT=1
ulimit -n 524288 ulimit -n 524288

View File

@ -28,8 +28,4 @@ if [ -d "/opt/homebrew/Caskroom/google-cloud-sdk" ]; then
source "/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc" source "/opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc"
fi fi
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
path=("$SDKMAN_DIR/candidates/java/current/bin" "$path[@]")
[[ -e "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env" [[ -e "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env"

View File

@ -175,6 +175,4 @@ vterm_prompt_end() {
setopt PROMPT_SUBST setopt PROMPT_SUBST
PROMPT=$PROMPT'%{$(vterm_prompt_end)%}' PROMPT=$PROMPT'%{$(vterm_prompt_end)%}'
path=("$SDKMAN_DIR/candidates/java/current/bin" "$path[@]")
[[ -f "$HOME/.zshrc-spotify" ]] && source "$HOME/.zshrc-spotify" [[ -f "$HOME/.zshrc-spotify" ]] && source "$HOME/.zshrc-spotify"