Skip to content

Instantly share code, notes, and snippets.

@vmesel
Forked from cuducos/bootstrap.sh
Created August 28, 2017 17:52
Show Gist options
  • Save vmesel/ab63328fdb34631c4d5b7cb0d3f834f2 to your computer and use it in GitHub Desktop.
Save vmesel/ab63328fdb34631c4d5b7cb0d3f834f2 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 install software-properties-common
sudo add-apt-repository ppa:neovim-ppa/stable
sudo add-apt-repository ppa:tmate.io/archive
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get autoremove -y
# install packages
sudo apt-get install -y ack-grep
sudo apt-get install -y autojump
sudo apt-get install -y autojump-zsh
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 make
sudo apt-get install -y namebench
sudo apt-get install -y neovim
sudo apt-get install -y pandoc
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-pip
sudo apt-get install -y python-psycopg2
sudo apt-get install -y python-setuptools
sudo apt-get install -y python3-dev
sudo apt-get install -y python3-pip
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 shellcheck
sudo apt-get install -y tmate
sudo apt-get install -y tmux
sudo apt-get install -y transmission
sudo apt-get install -y xclip
sudo apt-get install -y zsh
# install pyenv
sudo apt-get install -y libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
git clone https://github.com/yyuu/pyenv-virtualenvwrapper.git ~/.pyenv/plugins/pyenv-virtualenvwrapper
# install yarn
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install -y yarn
# install rbenv
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
cd ~/.rbenv && src/configure && make -C
# install the fuck
sudo -H python -m pip install thefuck
# 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
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# install extra taps
brew tap dinkypumpkin/get_iplayer
brew tap neovim/neovim
# install brew packages
brew install --with-deps get_iplayer
brew install ack
brew install autojump
brew install ctags
brew install docker
brew install docker-compose
brew install git
brew install git-cola
brew install gpg
brew install hadolint
brew install heroku-toolbelt
brew install neovim
brew install node
brew install pandoc
brew install postgresql
brew install pyenv
brew install pyenv-virtualenv
brew install pyenv-virtualenvwrapper
brew install rbenv
brew install rbenv-gem-rehash
brew install ruby-build
brew install shellcheck
brew install the_silver_searcher
brew install thefuck
brew install tmate
brew install tmux
brew install vim
brew install yarn
brew install zsh
brew install zsh-autosuggestions
# install brew cask packages
brew cask install appzapper
brew cask install caffeine
brew cask install dash
brew cask install dropbox
brew cask install firefox
brew cask install google-chrome
brew cask install google-drive
brew cask install ibettercharge
brew cask install iterm2
brew cask install lastfm
brew cask install markright
brew cask install namebench
brew cask install netshade
brew cask install obs
brew cask install psequel
brew cask install screenhero
brew cask install skype
brew cask install slack
brew cask install spotify
brew cask install tangerine
brew cask install torbrowser
brew cask install transmit
brew cask install utorrent
brew cask install viber
brew cask install virtualbox
brew cask install vlc
# clean up
brew cleanup -s
brew cask cleanup
brew prune
rm -rfv `brew --cache`
fi
##############################################################################
# Install Python 3 via pyenv #
##############################################################################
eval "$(pyenv init - bash)"
pyenv install 3.6.1
pyenv global 3.6.1
##############################################################################
# Install pip packages #
##############################################################################
python -m pip install getgist
python -m pip install proselint
python -m pip install vim-vint
python -m pip install virtualenv
python -m pip install virtualenvwrapper
python -m pip install yamllint
##############################################################################
# Install Ruby 2.3 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.4.0
rbenv global 2.4.0
##############################################################################
# Install gems #
##############################################################################
gem install asciidoctor
gem install bundler
##############################################################################
# Install NodeJS packages #
##############################################################################
yarn global add install elm
yarn global add install elm-doc-test
yarn global add install elm-oracle
yarn global add install elm-test
yarn global add install jscs
yarn global add install jshint
yarn global add install sass-lint
yarn global add install stylelint
yarn global add install vmd
##############################################################################
# Install oh-my-zsh #
##############################################################################
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
##############################################################################
# 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