Skip to content

Instantly share code, notes, and snippets.

@jaronson
Last active December 25, 2015 00:59
Show Gist options
  • Save jaronson/6892051 to your computer and use it in GitHub Desktop.
Save jaronson/6892051 to your computer and use it in GitHub Desktop.
VHOME=/home/vagrant
sudo apt-get -y install curl wget unzip exuberant-ctags ack tree screen
curl -k https://gist.github.com/jaronson/6892004/raw/37e4872e85e6e2c998971ab2eca8b33e1e917e15/.vimrc -o $VHOME/.vimrc
curl -k https://gist.github.com/jaronson/6892032/raw/63d6b162f3a84396fe9ef7c0da089b8107611af7/.screenrc -o $VHOME/.screenrc
curl -k https://gist.github.com/jaronson/6903803/raw/088e95bcca30ead24bcab4f0561c618842b659e6/debian.profile -o $VHOME/.profile
curl -k https://gist.github.com/jaronson/6903796/raw/ef5f976fcff0ea50e4aa38191cb86a8ee4a1b38d/debian.bash_profile -o $VHOME/.bash_profile
curl -k https://gist.github.com/jaronson/6893402/raw/38751e33b7ab47a9175508a6e0b202d766b6de6e/debian.bashrc -o $VHOME/.bashrc
curl -k https://gist.github.com/jaronson/6903833/raw/afcb3ed0e95b302f2f95b9cabb5743698237ff07/debian.bash_aliases -o $VHOME/.bash_aliases
curl -k https://gist.github.com/jaronson/6894815/raw/fdebd23f331fe581359b3b5afaebd36a213a808c/vagrant.ssh_config -o $VHOME/.ssh/config
rm -fr $VHOME/.vim
wget --no-check-certificate https://github.com/jaronson/.vim/archive/master.zip
unzip -o master.zip
mv .vim-master .vim
rm master.zip
cp /vagrant/tmp/id_rsa* $VHOME/.ssh/
cat $VHOME/.ssh/authorized_keys $VHOME/.ssh/id_rsa.pub | sort -u > /tmp/keys.txt
cat /tmp/keys.txt > $VHOME/.ssh/authorized_keys
owned=".ssh .vimrc .vim .screenrc"
for d in $owned; do
chown -R vagrant:vagrant $VHOME/$d
done
which rvm
if [[ ! $? == 0 ]]; then
curl -k https://gist.github.com/jaronson/6894966/raw/4042c0c675cd17a1f6c6cb3fc460452cb7c090b3/ubuntu-rvm.sh | bash
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment