Skip to content

Instantly share code, notes, and snippets.

@sorknes
Last active December 12, 2019 13:32
Show Gist options
  • Save sorknes/37e2c0390d8a0b454ab3b935c6dc2188 to your computer and use it in GitHub Desktop.
Save sorknes/37e2c0390d8a0b454ab3b935c6dc2188 to your computer and use it in GitHub Desktop.
Quickly setup a new Mac
#!/bin/bash
# Install Xcode CLI
echo "Installing Xcode CLI ..."
xcode-select --install
echo "Xcode CLI installation complete"
# Install Homebrew
if test ! $(which brew); then
echo "Installing Homebrew ..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "Homebrew installation complete"
fi
# Install CLI apps with Homebrew
echo "Installing CLI apps"
apps=(
node
python
git
yarn
parcel-bundler
)
brew install ${apps[@]}
echo "CLI apps installation complete"
echo "Upgrade and update Homebrew ..."
brew upgrade && brew update
echo "Done upgrading and updating Homebrew"
# Install GUI apps with Homebrew Cask
echo "Installing cask apps ..."
cask_apps=(
# Essential apps
1password
github
google-chrome
firefox
microsoft-edge-beta
visual-studio-code
dropbox
postman
slack
iterm2
figma
cheatsheet
)
brew cask install ${cask_apps[@]}
echo "Cask installation complete"
# Install Mac App Store apps
echo "Installing App Store apps ..."
mas_apps=(
1145215534 # Kelir color picker
)
echo "*** ALL INSTALLATIONS COMPLETE ***"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment