Use .nvm if present

This commit is contained in:
Peter J. Holzer 2023-08-08 15:51:24 +02:00
parent d466fe0733
commit d34e84c609
1 changed files with 7 additions and 0 deletions

7
.zshrc
View File

@ -141,3 +141,10 @@ fi
# for new style completion: # for new style completion:
autoload -U compinit autoload -U compinit
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