Skip to content

Instantly share code, notes, and snippets.

@jwmann
Last active May 20, 2021
Embed
What would you like to do?
Initialize & Install Homebrew Tools and Apps
#!/usr/bin/env sh
#
# Initialize & Install Default Homebrew / Casks
# To execute: save and `chmod +x ./brew-init.sh` then `./brew-init.sh`
#
# MacVim Requires the entirety of XCode to install, so install XCode before.
# Then Run `sudo xcode-select -s /Applications/Xcode.app/Contents/Developer` to use those command-line tools.
# Modern Homebrew should be installing XCode commandline tools on its own if it's missing
# If it doesn't, `xcode-select --install` should install it.
#
# Thanks to Mike Rogers for the idea: https://mikerogers.io/2014/05/20/my-osx-setup.html
echo "Installing brew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "Installing brew cask and taps..."
brew tap homebrew/cask-versions
brew tap homebrew/cask-fonts
brew tap thoughtbot/formulae
# Homebrew
echo "Installing terminal tools..."
## Dev Tools
brew install macvim
brew install neovim
brew install ripgrep
brew install the_silver_searcher
brew install git
# brew install ctags
brew install --HEAD universal-ctags/universal-ctags/universal-ctags
brew install drush
brew install nvm && nvm install --lts
brew install pyenv
brew install pyenv-virtualenv
brew install rcm
brew install mackup
brew install lastpass-cli
brew install bash-completion
brew install rename
brew install htop
brew install screenfetch
brew install duti
## Makes adding SSH keys to servers easier.
brew install ssh-copy-id
# Install phpbrew
curl -L -O https://github.com/phpbrew/phpbrew/releases/latest/download/phpbrew.phar && chmod +x phpbrew.phar && sudo mv phpbrew.phar /usr/local/bin/phpbrew
# Homebrew Cask Apps
echo "Installing apps..."
## Dev tools
brew cask install iterm2
brew cask install visual-studio-code
brew cask install mamp
brew cask install virtualbox
brew cask install vagrant
brew cask install postman
brew cask install docker
brew cask install owncloud
brew cask install tunnelblick
brew cask install cyberduck
brew cask install gpg-suite
brew cask install lastpass
## Other Apps
brew cask install quicksilver
brew cask install dropbox
brew cask install google-drive-file-stream
brew cask install little-snitch
brew cask install google-chrome
brew cask install firefox
brew cask install droplr
brew cask install transmission
brew cask install vlc
brew cask install iina
brew cask install colloquy
brew cask install rocket-chat
brew cask install slack
brew cask install skype
brew cask install geektool
brew cask install keka
brew cask install steam
# Fonts
brew cask install font-fira-code
# Open Little Snitch Installer dmg
open /usr/local/Caskroom/little-snitch/*/LittleSnitch-*.dmg
# Turn off that macOS key accent thing
defaults write -g ApplePressAndHoldEnabled -bool false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment