-
-
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/
This file contains hidden or 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
#!/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