Files
dotfiles/setup/nvm.sh
2021-11-28 11:39:03 +01:00

15 lines
340 B
Bash
Executable File

#!/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