add config for sdkman and nvm

This commit is contained in:
Jidbo 2021-09-05 21:46:13 +02:00
parent d9f1170230
commit 788d4d05b6
Signed by untrusted user: jidbo
GPG key ID: 54C320BF0E44C5CA
2 changed files with 8 additions and 0 deletions

View file

@ -1,4 +1,5 @@
alias vi="vim"
export SDKMAN_DIR="/your/home/directory/.sdkman"
# set prompt color
PROMPT_COLOR="blue"

View file

@ -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