Get sdkman working across shells and emacs

This commit is contained in:
Jeremy Dormitzer 2022-03-29 10:49:42 -04:00
parent ddb1cbf96e
commit 1ca13b5ab8
3 changed files with 7 additions and 4 deletions

View File

@ -5,7 +5,3 @@ ulimit -n 10240
export PATH="$PATH:/Users/jdormit/.local/bin" export PATH="$PATH:/Users/jdormit/.local/bin"
eval "$(pyenv init --path)" eval "$(pyenv init --path)"
export SYSTEM_VERSION_COMPAT=1 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"

View File

@ -22,3 +22,8 @@ fi
export PIPENV_MAX_DEPTH=20 export PIPENV_MAX_DEPTH=20
export PIPENV_VENV_IN_PROJECT=yes 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[@]")

View File

@ -170,3 +170,5 @@ 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[@]")