Skip to content

Instantly share code, notes, and snippets.

@blaix
Last active December 19, 2015 22:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blaix/6028070 to your computer and use it in GitHub Desktop.
Save blaix/6028070 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
echo "-----------------------------------------------------"
echo "Installing the essentials..."
echo "-----------------------------------------------------"
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install build-essential python-dev swig tmux curl vim
echo "-----------------------------------------------------"
echo "Setting up my dotfiles..."
echo "-----------------------------------------------------"
sudo apt-get -y install git ruby1.9.3
sudo gem install homesick
if [ ! -d ~/.homesick/repos/blaix/dotblaix ]; then
homesick clone blaix/dotblaix
fi
homesick pull blaix/dotblaix
homesick symlink blaix/dotblaix
echo "-----------------------------------------------------"
echo "Setting up ssh..."
echo "-----------------------------------------------------"
if ! grep -q sauron ~/.ssh/authorized_keys; then
wget --quiet https://raw.github.com/blaix/pubkeys/master/id_rsa-sauron.pub -O - >> ~/.ssh/authorized_keys
fi
echo "-----------------------------------------------------"
echo "Setting up my dev environment..."
echo "-----------------------------------------------------"
mkdir -p ~/bin
mkdir -p ~/work
mkdir -p ~/projects
sudo gem install gist bundler git-smart
vim +BundleInstall +qal
if ! which -s pythonbrew; then
curl -kL http://xrl.us/pythonbrewinstall | bash
fi
if ! which -s hub; then
curl http://hub.github.com/standalone -sLo ~/bin/hub && chmod +x ~/bin/hub
fi
echo "-----------------------------------------------------"
echo "Done."
echo "You should source ~/.bash_profile now."
echo "-----------------------------------------------------"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment