From 788d4d05b6139afefdc06782febea97627c21f13 Mon Sep 17 00:00:00 2001 From: Jidbo Date: Sun, 5 Sep 2021 21:46:13 +0200 Subject: [PATCH] add config for sdkman and nvm --- shell/localcommands.example | 1 + shell/zshrc | 7 +++++++ 2 files changed, 8 insertions(+) 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