Skip to content

Instantly share code, notes, and snippets.

@beriberikix
Forked from codeinthehole/osx_bootstrap.sh
Last active August 30, 2017 02:04
Show Gist options
  • Save beriberikix/a82148c1797ddf41db9b236d31f50921 to your computer and use it in GitHub Desktop.
Save beriberikix/a82148c1797ddf41db9b236d31f50921 to your computer and use it in GitHub Desktop.
Script to install stuff I want on a new OSX machine
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Some apps don't have a cask and so still need to be installed by hand. These
# include:
#
# - simplify3d.com
# - eagle
# - fusion 360
#
# 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
# Update homebrew recipes
brew update
PACKAGES=(
git
hub
jq
node
python
python3
wget
)
echo "Installing packages..."
brew install ${PACKAGES[@]}
echo "Cleaning up..."
brew cleanup
echo "Installing cask..."
brew install caskroom/cask/brew-cask
CASKS=(
android-studio
arduino
atom
coolterm
cyberduck
disk-inventory-x
docker
firefox
freecad
fritzing
google-chrome
inkscape
kicad
openscad
particle-dev
slack
slic3r
the-unarchiver
virtualbox
vlc
wireshark
)
echo "Installing cask apps..."
brew cask install ${CASKS[@]}
echo "Installing fonts..."
brew tap caskroom/fonts
FONTS=(
caskroom/fonts/font-montserrat
)
brew cask install ${FONTS[@]}
echo "Installing global npm packages..."
npm install particle-cli -g
echo "Bootstrapping complete"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment