Created
July 18, 2012 18:43
-
-
Save timothyandrew/3137985 to your computer and use it in GitHub Desktop.
Vagrant Setup Shell Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ZSH | |
echo "installing zsh" | |
sudo apt-get install -y zsh | |
#Git | |
echo "installing git" | |
sudo apt-get install -y git-core | |
#Oh My Zsh | |
echo "installing oh-my-zsh" | |
wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh | |
################################ | |
# TYPE IN MANUALLY AFTER LOGIN # | |
################################ | |
# Change shell to /bin/zsh | |
# sudo chsh | |
# Run the full provision script | |
# /vagrant/provision.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#GCC | |
echo "install gcc et al." | |
sudo apt-get install -y build-essential make | |
#rbenv | |
echo "installing rbenv" | |
cd | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc | |
echo 'eval "$(rbenv init -)"' >> ~/.zshrc | |
#ruby-build | |
echo "installing ruby-build" | |
mkdir -p ~/.rbenv/plugins | |
cd ~/.rbenv/plugins | |
git clone git://github.com/sstephenson/ruby-build.git | |
source ~/.zshrc | |
#ruby | |
echo "installing ruby" | |
rbenv install 1.9.3-p194 | |
rbenv global 1.9.3-p194 | |
#rails | |
echo "installing rails" | |
gem install rails |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment