nvm: change nvm setup to improve zsh startup time
This commit is contained in:
parent
c742fcefb6
commit
676a57116a
1 changed files with 4 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue