diff --git a/zsh/.zprofile b/zsh/.zprofile index af30263..fa94f34 100644 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -5,7 +5,3 @@ ulimit -n 10240 export PATH="$PATH:/Users/jdormit/.local/bin" eval "$(pyenv init --path)" export SYSTEM_VERSION_COMPAT=1 - -#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" diff --git a/zsh/.zshenv b/zsh/.zshenv index 2b49782..6b9fe4e 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -22,3 +22,8 @@ fi export PIPENV_MAX_DEPTH=20 export PIPENV_VENV_IN_PROJECT=yes + +#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[@]") diff --git a/zsh/.zshrc b/zsh/.zshrc index 9826d96..5e8e3d8 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -170,3 +170,5 @@ vterm_prompt_end() { } setopt PROMPT_SUBST PROMPT=$PROMPT'%{$(vterm_prompt_end)%}' + +path=("$SDKMAN_DIR/candidates/java/current/bin" "$path[@]")