#!/usr/bin/env bash

# enter permanent su
sudo su

# update before provisioning
apt-get update -y

# install essentials
apt-get install -y python-software-properties
apt-get install -y build-essential git nano curl mc

# update after essentials (especially python-software-properties)
apt-get update -y

# update git
add-apt-repository -y ppa:git-core/ppa
apt-get -y install git

# install node & update npm
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
apt-get install -y nodejs
npm install npm -g

# install bower
npm rm --global bower
npm install --global bower

# install gulp
npm rm --global gulp
npm install --global gulp gulp-cli

# install project dependencies
# when running Vagrant under Windows, in case of "EPROTO: protocol error, symlink", use npm with "--no-bin-links"
npm install
# npm install --no-bin-links

# add custom .bashrc content to .bashrc
cat /vagrant/vagrant/home/vagrant/.bashrc >> /home/vagrant/.bashrc

# update after provisioning
apt-get update -y

#!/usr/bin/env bash

# enter permanent su
sudo su

# update before provisioning
apt-get -y update

# install essentials
apt-get install -y python-software-properties
apt-get install -y build-essential git nano curl mc

# update after essentials (especially python-software-properties)
apt-get -y update

# update git
add-apt-repository -y ppa:git-core/ppa
apt-get -y update
apt-get -y install git

# install node & update npm
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
apt-get install -y nodejs
npm install npm -g

# install bower
npm rm --global bower
npm install --global bower

# install gulp
npm rm --global gulp
npm install --global gulp gulp-cli

# install project dependencies
# when running Vagrant under Windows, in case of "EPROTO: protocol error, symlink", use npm with "--no-bin-links"
npm install
# npm install --no-bin-links

# add custom .bashrc content to .bashrc
cat /vagrant/vagrant/home/vagrant/.bashrc >> /home/vagrant/.bashrc

# update after provisioning
apt-get -y update

Fix git update to the recent version
Fix git update to the recent version

- reformat -y commands in apt-get lines
