Skip to content

Instantly share code, notes, and snippets.

Last active May 30, 2023 14:18
Star You must be signed in to star a gist
What would you like to do?
Install most of my Apps with homebrew & cask
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL"
brew tap homebrew/science
brew install wget
brew install postgresql
brew install go
brew install node
brew install ant
brew install ffmpeg
brew install eigen
brew install opencv
npm install -g gitjk
sudo npm install -g cordova
npm install phonegap -g
brew tap phinze/cask
brew install brew-cask
#brew cask search
#brew cask uninstall app
# Core Functionality
echo Install Core Apps
brew cask install --appdir="/Applications" alfred
brew cask install --appdir="/Applications" dropbox
brew cask install --appdir="/Applications" little-snitch
brew cask install --appdir="~/Applications" transmit
brew cask install --appdir="~/Applications" vlc
brew cask install --appdir="~/Applications" iterm2
brew cask install --appdir="~/Applications" java
## get from App Store
#brew cask install --appdir="/Applications" evernote
#brew cask install --appdir="/Applications" wunderlist
#brew cask install --appdir="/Applications" clamxav
# Development
echo Install Dev Apps
brew cask install --appdir="/Applications" github
brew cask install --appdir="/Applications" heroku-toolbelt
brew cask install --appdir="/Applications" sublime-text
brew cask install --appdir="/Applications" webstorm
brew cask install --appdir="/Applications" pycharm-pro
brew cask install --appdir="/Applications" light-table
brew cask install --appdir="/Applications" macvim
brew cask install --appdir="/Applications" virtualbox
brew cask install --appdir="/Applications" vagrant
brew cask install --appdir="/Applications" sourcetree
brew cask install --appdir="/Applications" charles
brew cask install --appdir="/Applications" easyfind
# Google Slavery
echo Install Google Apps | Chrome not included cause of 1Password Plugin
# brew cask install --appdir="/Applications" google-chrome
brew cask install --appdir="/Applications" google-drive
brew cask install --appdir="/Applications" google-music-manager
brew cask install --appdir="/Applications" google-earth
brew cask install --appdir="/Applications" chromecast
# Nice to have
echo Install Some additional Apps
brew cask install --appdir="/Applications" firefox
brew cask install --appdir="/Applications" skype
brew cask install --appdir="/Applications" jdownloader
brew cask install --appdir="/Applications" lastfm
brew cask install --appdir="/Applications" all2mp3
brew cask install --appdir="/Applications" spotify
brew cask install --appdir="/Applications" spotify-notifications
# Link Cask Apps to Alfred
brew cask alfred link
# cleanup
brew cleanup --force
rm -f -r /Library/Caches/Homebrew/*
echo "Security:"
Copy link

ronlobo commented Jan 21, 2015

What about git flow, bash completion, vcprompt and android studio? :)

Copy link

qorbani commented Mar 12, 2015

You can use following in your beginning of your script and remove all --appdir from each cask install command:

export HOMEBREW_CASK_OPTS="--appdir=/Applications"

Copy link

ygayl commented May 5, 2015

The domain name for homebrew installation has changed. Here is the new command to run:
ruby -e "$(curl -fsSL"

Copy link

I use loops with a param list for this to make it a bit more concise:

Copy link

Copy link

Google has changed the name of google-drive to google-backup-and-sync.

Copy link

beejhuff commented Aug 7, 2017

I wanted to echo @lizenas suggestion for mas-cli/mas - @rodionovd has done some amazing work and mas has never failed me for a single app from the App Store - even apps that I bought offline and then upgraded through the app store!

I'd add that if you're also considering adding Mac System level configuration to your provisioning and setup scripts in the future, you may want to also consider guarinogabriel/mac-cli

From @guarinogabriel's README :

 macOS command line tools for developers

⭐️ Now with modularity and plugins! You can check the plugins folder: /mac-cli/plugins

Contributions to add new plugins and keep improving the existing ones are welcome and very much appreciated!


The ultimate tool for developers to manage their Mac. It provides a huge set of command line commands that automate the usage of >your macOS system. When you run a function, the executed command is displayed and that helps you memorize each of the Utilities > for future usage.

Gabriel (like me) does a lot of Magento project work so there are a few utilities available as optional modules focused around that well as more generally to web development on a Mac, but these are all optional during the installation.

The updated modular plugin system is awesome, and though I haven't had a chance to contribute to it yet, if you DO manage to find some system or admin functionality that hasn't yet been implemented, it's pretty easy to use the existing modules as a template and add whatever you might need to the project!

Thanks for sharing your script :)

  • BJH

Copy link

xebu commented Oct 3, 2017

Throwing my two cents in ...

I typically run two scripts (not sure why) but here they are: -

  1. Installs Brew + cask:

  2. Installs common apps:

I recently came across this:

Hope there is something there y'all find useful. Whoops - just noticed the person above already recommended the 3rd point!

Copy link

great 👍

Copy link

Nice ! What about using mas-cli to automate AppStore installs ?! (I've never used it personally but it seems pretty straightforward)

Copy link

tucq88 commented May 30, 2018

My cask cant' find wunderlist

Copy link

Hello @t-io, You can automate Mac App Store applications installation using mas-cli

# MAS-cli installation 
brew cask install mas

#Search for the unique application code from the Mac App Store 
mas search Evernote 
> 406056744  Evernote (7.10)

# Install Evernote from Mac App Store 
mas install 406056744

Copy link

% mas lucky evernote

is actually useful, but counterintuitive.

% mas lucky Xcode

actually does the "right" thing, where

% mas search Xcode

returns a swathe of results that makes automating it non trivial...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment