Skip to content

Instantly share code, notes, and snippets.

@cyancey76
Forked from CliffordAnderson/brew-install-script.sh
Last active January 12, 2022 23:57
Show Gist options
  • Save cyancey76/f59fdcd196848bfbf512f31fe8643920 to your computer and use it in GitHub Desktop.
Save cyancey76/f59fdcd196848bfbf512f31fe8643920 to your computer and use it in GitHub Desktop.
Brew script for installing packages and applications on OSX
#!/bin/sh
# Homebrew Script for OSX
# To execute:
# save in your user folder and `sudo chmod u+x ./brew-install-script.sh && xattr -d com.apple.quarantine ./brew-install-script.sh && ./brew-install-script.sh`
echo "Installing brew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo "Installing brew cask..."
brew tap homebrew/cask
echo "Installing brew cask-fonts..."
brew tap homebrew/cask-fonts
# Important
echo "Installing important things first..."
brew install --cask hyper
brew install --cask google-chrome
brew install --cask rectangle
brew install --cask alfred
brew install --cask flycut
# Other
echo "Installing other things..."
brew install --cask plex-media-server
brew install --cask windscribe
brew install --cask qbittorrent
brew install --cask spotify
brew install --cask spotmenu
brew install --cask steam
brew install --cask rocket
brew install --cask twitch
brew install --cask vlc
brew install --cask appcleaner
brew install --cask stats
brew install --cask adobe-acrobat-reader
brew install --cask aerial
# Communication Apps
echo "Installing communication apps..."
brew install --cask discord
brew install --cask skype
brew install --cask slack
# You'll need to enter admin password for Zoom
brew install --cask zoom
# File Storage
echo "Installing file storage tools..."
brew install --cask dropbox
brew install --cask the-unarchiver
# Writing Apps
echo "Installing writing apps..."
brew install --cask boostnote
brew install --cask macdown
# Add shortcuts to Dock
echo "Adding shortcuts to Dock..."
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Hyper.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Google Chrome.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Spotify.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Discord.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Boostnote.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
killall Dock
# Programming Languages
echo "Installing programming languages..."
brew install php
brew install [email protected]
brew install mariadb
brew install node
brew install nvm
# Git Setup
echo "Installing Git..."
brew install git
touch ~/.gitignore
git config --global core.excludesfile ~/.gitignore
git config --global user.name "Your Name"
git config --global user.email [email protected]
# Dev Tools
echo "Installing development tools..."
brew install --cask github
brew install --cask sourcetree
brew install --cask visual-studio-code
brew install --cask forklift
# You'll need to enter admin password for MAMP
brew install --cask mamp
brew install --cask tableplus
# Web Tools
echo "Installing web tools..."
brew install httpie
brew install --cask adobe-creative-cloud
brew install --cask figma
brew install --cask framer
brew install --cask gas-mask
brew install --cask microsoft-edge
brew install --cask firefox
brew install --cask ngrok
brew install --cask postman
brew install --cask screaming-frog-seo-spider
# Add shortcuts to Dock
echo "Adding shortcuts to Dock..."
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Sourcetree.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Visual Studio Code.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/ForkLift.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/TablePlus.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Figma.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Microsoft Edge.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Firefox.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
killall Dock
# Fonts
echo "Installing some fonts..."
brew install svn
brew install font-fontawesome
brew install font-anonymice-powerline
brew install font-fira-mono-for-powerline
brew install font-inconsolata-g-for-powerline
brew install font-monofur-for-powerline
brew install font-sf-mono-for-powerline
brew install font-consolas-for-powerline
brew install font-inconsolata-dz-for-powerline
brew install font-liberation-mono-for-powerline
brew install font-noto-mono-for-powerline
brew install font-source-code-pro-for-powerline
brew install font-dejavu-sans-mono-for-powerline
brew install font-inconsolata-for-powerline
brew install font-menlo-for-powerline
brew install font-powerline-symbols
brew install font-ubuntu-mono-derivative-powerline
brew install font-droid-sans-mono-for-powerline
brew install font-inconsolata-for-powerline-bold
brew install font-meslo-for-powerline
brew install font-roboto-mono-for-powerline
brew install font-3270-nerd-font
brew install font-agave-nerd-font
brew install font-anonymice-nerd-font
brew install font-arimo-nerd-font
brew install font-aurulent-sans-mono-nerd-font
brew install font-bigblue-terminal-nerd-font
brew install font-bitstream-vera-sans-mono-nerd-font
brew install font-blex-mono-nerd-font
brew install font-caskaydia-cove-nerd-font
brew install font-code-new-roman-nerd-font
brew install font-cousine-nerd-font
brew install font-daddy-time-mono-nerd-font
brew install font-dejavu-sans-mono-nerd-font
brew install font-droid-sans-mono-nerd-font
brew install font-fantasque-sans-mono-nerd-font
brew install font-fira-code-nerd-font
brew install font-fira-mono-nerd-font
brew install font-go-mono-nerd-font
brew install font-gohufont-nerd-font
brew install font-hack-nerd-font
brew install font-hackgen-nerd
brew install font-hasklug-nerd-font
brew install font-heavy-data-nerd-font
brew install font-hurmit-nerd-font
brew install font-im-writing-nerd-font
brew install font-inconsolata-go-nerd-font
brew install font-inconsolata-lgc-nerd-font
brew install font-inconsolata-nerd-font
brew install font-iosevka-nerd-font
brew install font-jetbrains-mono-nerd-font
brew install font-lekton-nerd-font
brew install font-liberation-nerd-font
brew install font-meslo-lg-nerd-font
brew install font-monofur-nerd-font
brew install font-monoid-nerd-font
brew install font-mononoki-nerd-font
brew install font-mplus-nerd-font
brew install font-noto-nerd-font
brew install font-open-dyslexic-nerd-font
brew install font-overpass-nerd-font
brew install font-profont-nerd-font
brew install font-proggy-clean-tt-nerd-font
brew install font-roboto-mono-nerd-font
brew install font-sauce-code-pro-nerd-font
brew install font-shure-tech-mono-nerd-font
brew install font-space-mono-nerd-font
brew install font-terminess-ttf-nerd-font
brew install font-tinos-nerd-font
brew install font-ubuntu-mono-nerd-font
brew install font-ubuntu-nerd-font
brew install font-victor-mono-nerd-font
# Oh My ZSH
echo "Installing Oh My ZSH..."
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo "Installing Powerlevel10k..."
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment