Skip to content

Instantly share code, notes, and snippets.

@trbngr
Forked from jeherve/install.sh
Last active September 19, 2018 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trbngr/dbba8989c900acb138b41c904286f317 to your computer and use it in GitHub Desktop.
Save trbngr/dbba8989c900acb138b41c904286f317 to your computer and use it in GitHub Desktop.
Installing my favorite apps on a new machine https://jeremy.hu/homebrew-cask-automate-mac-install/
#!/bin/sh
echo Install all AppStore Apps at first!
# If you are looking into a solution to automate AppStore installs,
# check mas https://github.com/argon/mas
# I installed XCode, Forklift.
read -p "Press any key to continue... " -n1 -s
echo '\n'
# Install Homebrew
# Check for Homebrew
if test ! $(which brew)
then
echo " Installing Homebrew for you."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" > /tmp/homebrew-install.log
fi
# Make sure we’re using the latest Homebrew.
brew update
# Upgrade any already-installed formulae.
brew upgrade --all
# Add some casks
brew tap caskroom/cask
brew tap homebrew/dupes
brew services list
# Install important utilities
echo Install Core utilities
brew install coreutils
brew install ffmpeg
brew install imagemagick
brew install graphicsmagick
brew install httpie
# Software
echo Install basic apps
brew cask install --appdir="/Applications" clipmenu
brew cask install --appdir="/Applications" google-chrome
brew cask install --appdir="/Applications" firefox
brew cask install --appdir="/Applications" atom
brew cask install --appdir="/Applications" 1password
brew cask install --appdir="/Applications" slack
brew cask install --appdir="/Applications" vlc
brew cask install --appdir="/Applications" appcleaner
brew cask install --appdir="/Applications" iterm2
# Development
echo Install Development tools
brew install git
# Get a better shell
brew install zsh zsh-completions
# Development tools
brew install curl
brew install yarn
brew install sass
brew install postgresql
# Configure Postgres
brew services start postgresql
initdb /usr/local/var/postgres -E utf8
createuser -s postgres
# Cleanup
brew cleanup
rm -f -r /Library/Caches/Homebrew/*
echo "All done! Phew!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment