Skip to content

Instantly share code, notes, and snippets.

@rg3915
Forked from cuducos/bootstrap.sh
Created January 16, 2016 14:34
Show Gist options
  • Save rg3915/290c0c23679977c60c80 to your computer and use it in GitHub Desktop.
Save rg3915/290c0c23679977c60c80 to your computer and use it in GitHub Desktop.
Computer Bootstraps
#!/bin/bash
##############################################################################
# Install system packages #
##############################################################################
# if apt-get exists, probably it's a Linux
if which apt-get > /dev/null; then
# update & clean up
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get autoremove -y
# install packages
sudo apt-get install -y autojump
sudo apt-get install -y autojump-zsh
sudo apt-get install -y ack-grep
sudo apt-get install -y build-essential
sudo apt-get install -y cmake
sudo apt-get install -y curl
sudo apt-get install -y git
sudo apt-get install -y git-cola
sudo apt-get install -y heroku-toolbelt
sudo apt-get install -y libpq-dev
sudo apt-get install -y namebench
sudo apt-get install -y pandoc
sudo apt-get install -y poedit
sudo apt-get install -y postgresql
sudo apt-get install -y postgresql-contrib
sudo apt-get install -y python
sudo apt-get install -y python-dev
sudo apt-get install -y python-psycopg2
sudo apt-get install -y python-setuptools
sudo apt-get install -y ruby
sudo apt-get install -y ruby-build
sudo apt-get install -y silversearcher-ag
sudo apt-get install -y transmission
sudo apt-get install -y wget
sudo apt-get install -y xclip
sudo apt-get install -y zsh
# install pyenv
sudo apt-get install -y python-pip make libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
# clean up
sudo apt-get autoremove
sudo apt-get autoclean
# if apt-get doesn't exist, probably it's a Mac
else
# command line tools
xcode-select --install
# install homebrew & cask
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install caskroom/cask/brew-cask
# install extra taps
brew tap dinkypumpkin/get_iplayer
brew tap neovim/neovim
# install brew packages
brew install autojump
brew install ack
brew install ctags
brew install docker
brew install docker-compose
brew install --with-deps get_iplayer
brew install git
brew install git-cola
brew install heroku-toolbelt
brew install --HEAD neovim
brew install node
brew install pandoc
brew install pyenv
brew install pyenv-virtualenvwrapper
brew install postgresql
brew install rbenv
brew install rbenv-gem-rehash
brew install ruby-build
brew install thefuck
brew install the_silver_searcher
brew install zsh
# weasyprint requirements
brew install cairo
brew install libxml2
brew install libxslt
brew install pango
echo /usr/local/opt/libxslt/lib/python2.7/site-packages >> /usr/local/lib/python2.7/site-packages/libxslt.pth
# install brew cask packages
brew cask install appzapper
brew cask install caffeine
brew cask install clamxav
brew cask install copy
brew cask install dropbox
brew cask install firefox
brew cask install google-chrome
brew cask install google-drive
brew cask install lastfm
brew cask install macpaw-gemini
brew cask install macvim
brew cask install mou
brew cask install netshade
brew cask install onyx
brew cask install paparazzi
brew cask install poedit
brew cask install psequel
brew cask install screenhero
brew cask install sitesucker
brew cask install skype
brew cask install slack
brew cask install sopcast
brew cask install spotify
brew cask install tangerine
brew cask install torbrowser
brew cask install transmit
brew cask install vlc
brew cask install viber
brew cask install virtualbox
brew cask install ibettercharge
brew cask install iterm2
brew cask install namebench
brew cask install utorrent
# clean up
brew cleanup
brew cask cleanup
fi
##############################################################################
# Install Python 3 via pyenv #
##############################################################################
eval "$(pyenv init -)"
pyenv install 3.5.1
pyenv global 3.5.1
##############################################################################
# Install pip packages #
##############################################################################
pip install Flootty
pip install getgist
pip install 'ipython[notebook]'
pip install neovim
pip install virtualenv
pip install virtualenvwrapper
pip install weasyprint
##############################################################################
# Install Ruby 2.2 via rbenv #
##############################################################################
if which apt-get > /dev/null; then export PATH="$HOME/rbenv/bin:$PATH"; fi
if which brew > /dev/null; then export RBENV_ROOT=/usr/local/var/rbenv; fi
if which rbenv > /dev/null; then eval "$(rbenv init - zsh)"; fi
rbenv install 2.2.3
rbenv global 2.2.3
##############################################################################
# Install gems #
##############################################################################
gem install asciidoc-bib
gem install asciidoctor
gem install sass
##############################################################################
# Install NodeJS packages #
##############################################################################
npm install -g coffee-script
npm install -g bower
npm install -g grunt-cli
npm install -g vmd
##############################################################################
# Install oh-my-zsh #
##############################################################################
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
###############################################################################
# Homebrew packages tab complete #
###############################################################################
if which brew > /dev/null; then ln -s "$(brew --prefix)/Library/Contributions/brew_zsh_completion.zsh" /usr/local/share/zsh/site-functions; fi
##############################################################################
# Dotfiles #
##############################################################################
export GETGIST_USER='cuducos'
cd ~
getmy .vimrc -y
getmy .gitconfig -y
getmy .bash_profile -y
getmy .zshrc -y
getmy .profile -y
ln -s ~/.vim ~/.config/nvim
ln -s ~/.vimrc ~/.config/nvim/init.vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment