#!/usr/bin/env bash

# Ruby with rbenv
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build

# Node with NVM
curl https://raw.github.com/creationix/nvm/master/install.sh | sh
source ~/.nvm/nvm.sh
nvm install 0.11
nvm alias default 0.11

# Maven
wget -O /tmp/maven.tar.gz http://mir2.ovh.net/ftp.apache.org/dist/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.tar.gz
tar -zxv -f /tmp/maven.tar.gz
echo 'export M2_HOME=~/apache-maven-3.1.1' >> ~/.bashrc
echo 'export M2=$M2_HOME/bin' >> ~/.bashrc
echo 'export PATH=$M2:$PATH' >> ~/.bashrc
echo 'export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/' >> ~/.bashrc
source ~/.bashrc

#!/usr/bin/env bash

# Ruby with rbenv
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 1.9.3-p429
rbenv rehash

# Node with NVM
curl https://raw.github.com/creationix/nvm/master/install.sh | sh
source ~/.nvm/nvm.sh
nvm install 0.11
nvm alias default 0.11

# Maven
wget -O /tmp/maven.tar.gz http://mir2.ovh.net/ftp.apache.org/dist/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.tar.gz
tar -zxv -f /tmp/maven.tar.gz
echo 'export M2_HOME=~/apache-maven-3.1.1' >> ~/.bashrc
echo 'export M2=$M2_HOME/bin' >> ~/.bashrc
echo 'export PATH=$M2:$PATH' >> ~/.bashrc
echo 'export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/' >> ~/.bashrc
source ~/.bashrc

Install proper version of ruby
Install proper version of ruby
