Last active
December 19, 2015 22:29
-
-
Save blaix/6028070 to your computer and use it in GitHub Desktop.
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
#!/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