From 3decf707787484029218e46f5d736bdcab922a3e Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Tue, 8 Aug 2023 15:51:24 +0200 Subject: [PATCH] Use .nvm if present --- .zshrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.zshrc b/.zshrc index da138ea..389d147 100644 --- a/.zshrc +++ b/.zshrc @@ -152,3 +152,10 @@ fi # for new style completion: autoload -U compinit compinit + +# NVM +if [ -d "$HOME/.nvm" ] +then + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +fi