Last active
January 28, 2018 15:33
-
-
Save simbas/471fe325eb60a4b7d0b30481940b1e82 to your computer and use it in GitHub Desktop.
bootstrap
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
#!/usr/bin/env bash | |
set -e | |
# | |
# Bootstrap script for setting up a new OSX machine | |
# | |
# This should be idempotent so it can be run multiple times. | |
# | |
# Notes: | |
# | |
# - If installing full Xcode, it's better to install that first from the app | |
# store before running the bootstrap script. Otherwise, Homebrew can't access | |
# the Xcode libraries as the agreement hasn't been accepted yet. | |
# | |
echo "Starting bootstrapping" | |
# Check for Homebrew, install if we don't have it | |
if test ! $(which brew); then | |
echo "Installing homebrew..." | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
# Update homebrew recipes | |
brew update | |
PACKAGES=( | |
ddgr | |
gpg | |
) | |
echo "Installing packages..." | |
brew install ${PACKAGES[@]} | |
echo "Cleaning up..." | |
brew cleanup | |
CASKS=( | |
iterm2 | |
intellij-idea | |
) | |
echo "Installing cask apps..." | |
brew cask install ${CASKS[@]} | |
echo "Installing fonts..." | |
brew tap caskroom/fonts | |
FONTS=( | |
font-inconsolata | |
) | |
brew cask install ${FONTS[@]} | |
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime | |
sh ~/.vim_runtime/install_basic_vimrc.sh | |
git clone --depth=1 git@github.com:mbadolato/iTerm2-Color-Schemes.git ~/.iterm_color |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment