nvm: change nvm setup to improve zsh startup time

This commit is contained in:
Johannes Loher 2021-05-22 01:58:59 +02:00
parent c742fcefb6
commit 676a57116a

View file

@ -48,8 +48,11 @@ fi
# NVM # NVM
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" NODE_VERSION="v14.17.0"
NODE_PATH="$NVM_DIR/versions/node/$NODE_VERSION"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" --no-use
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" [ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion"
[ -d "$NODE_PATH/bin" ] && export PATH=$NODE_PATH/bin:$PATH
# SDKMAN! # SDKMAN!
export SDKMAN_DIR="$HOME/.sdkman" export SDKMAN_DIR="$HOME/.sdkman"