From 676a57116a3ce886f0301169938c9836a9746db1 Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Sat, 22 May 2021 01:58:59 +0200 Subject: [PATCH] nvm: change nvm setup to improve zsh startup time --- .zshrc.local | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.zshrc.local b/.zshrc.local index 6d832bb..22c2269 100644 --- a/.zshrc.local +++ b/.zshrc.local @@ -48,8 +48,11 @@ fi # 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" +[ -d "$NODE_PATH/bin" ] && export PATH=$NODE_PATH/bin:$PATH # SDKMAN! export SDKMAN_DIR="$HOME/.sdkman"