chore(nvm): add install script for nvm

This commit is contained in:
Stefan Imhoff
2021-11-28 11:39:03 +01:00
parent f1c8530751
commit 6ea383db24
2 changed files with 17 additions and 0 deletions

14
setup/nvm.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
# Manual install of nvm
git clone https://github.com/creationix/nvm.git ~/.nvm
cd ~/.nvm
git checkout `git describe --abbrev=0 --tags`
cd ~/.dotfiles/
# Reload nvm into this environment
export NVM_DIR="$HOME/.nvm/"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
nvm install stable
nvm alias default stable