attifix: export correctly nvm path

This commit is contained in:
poka 2020-05-14 00:09:01 +02:00
parent 9b74522e21
commit 128515c958
1 changed files with 4 additions and 1 deletions

View File

@ -73,7 +73,10 @@ echo '
if [[ ! $(which node) ]]; then
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
source ~/.bashrc
export NVM_DIR="$HOME/.nvm"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
source ~/.bashrc
nvm install --lts
fi