diff --git a/shell/localcommands.example b/shell/localcommands.example index 9ae7837..53f80dd 100644 --- a/shell/localcommands.example +++ b/shell/localcommands.example @@ -1,4 +1,5 @@ alias vi="vim" +export SDKMAN_DIR="/your/home/directory/.sdkman" # set prompt color PROMPT_COLOR="blue" diff --git a/shell/zshrc b/shell/zshrc index 27cac17..ad2446f 100644 --- a/shell/zshrc +++ b/shell/zshrc @@ -70,3 +70,10 @@ if _has ruby; then export PATH="$PATH:$(ruby -e 'print Gem.user_dir')/bin" fi + +#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! +[[ -s "$SDKMAN_DIR/bin/sdkman-init.sh" ]] && source "$SDKMAN_DIR/bin/sdkman-init.sh" + +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion