Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (24 sloc) 994 Bytes
if [ ! -f ~/runonce ] #here the check is on the root home directory
cd /home/vagrant
echo "Installing nvm..."
wget -qO- | sh
export NVM_DIR="/home/vagrant/.nvm"
[ -s "$NVM_DIR/" ] && . "$NVM_DIR/" # This loads nvm
nvm install node
npm install bower -g
npm install electron -g
echo ':::: setting up liquidprompt to vagrant machine ::::'
echo "Installing liquidprompt..."
cd /home/vagrant/
git clone
source liquidprompt/liquidprompt
echo "Setting up liquidprompt to the .bashrc folder"
echo '# Only load Liquid Prompt in interactive shells, not from a script or from scp' >> /home/vagrant/.bashrc
echo '[[ $- = *i* ]] && source /home/vagrant/liquidprompt/liquidprompt' >> /home/vagrant/.bashrc
touch ~/runonce #avoid script to be provisioned more than once
echo "::: nvm already provisioned :::"
nvm node --version