Skip to content

Instantly share code, notes, and snippets.

@iakio
Last active August 29, 2015 13:56
Show Gist options
  • Save iakio/9121964 to your computer and use it in GitHub Desktop.
Save iakio/9121964 to your computer and use it in GitHub Desktop.
#/bin/sh
apt-get update
apt-get -y install build-essential
apt-get -y install git-core
apt-get -y install libsqlite3-dev
apt-get -y install tmux
apt-get -y install vim
#!/bin/sh
sudo -H -u vagrant bash -x <<'EOS'
[ -d ~/.rbenv ] || git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
[ -d ~/.rbenv/plugins/ruby-build ] || git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
fgrep -q .rbenv ~/.bash_profile || echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
fgrep -q "rbenv init" ~/.bash_profile || echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
[ -f ~/.vimrc ] || cat <<VIMRC > ~/.vimrc
colorscheme desert
filetype plugin indent on
VIMRC
[ -f ~/.gemrc ] || cat <<GEMRC > ~/.gemrc
install: --no-rdoc --no-ri
update: --no-rdoc --no-ri
GEMRC
EOS
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "precise32"
config.vm.provision "shell", path: "provison_root.sh"
config.vm.provision "shell", path: "provison_vagrant.sh"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment