From d34e84c609db9e1c8f35f66a0cff30e5d2b15c63 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 f6127ea..ce13da8 100644 --- a/.zshrc +++ b/.zshrc @@ -141,3 +141,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