Skip to content

Instantly share code, notes, and snippets.

@gekitsuu
Last active February 25, 2019 20:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gekitsuu/e3dd4378878c1e7ec7f62e2d04d50884 to your computer and use it in GitHub Desktop.
Save gekitsuu/e3dd4378878c1e7ec7f62e2d04d50884 to your computer and use it in GitHub Desktop.
Setup a new mac
#!/bin/bash
# Author: Adam Glenn
# Email : gekitsuu@gmail.com
#
# To update this Gist run
# gist --login # if not already logged in
# gist -u e3dd4378878c1e7ec7f62e2d04d50884 ./setup_my_mac.sh
install_homebrew(){
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
}
install_cask_apps() {
# Install Casks
brew cask install \
arq \
audio-hijack \
between \
calibre \
gimp \
iterm2 \
keyboard-maestro \
sdl-framework \
sdl-ttf-framework \
skitch \
vagrant \
virtualbox \
visual-studio-code \
vlc
}
install_brew_apps(){
# Configure some homebrew things
brew analytics off
# Install brew packages
brew install \
awscli \
git \
jq \
nmap \
node \
pwgen \
python \
python3 \
rsync \
s3cmd \
sqlite \
tree \
wget \
youtube-dl \
zsh
}
configure_mac(){
# Undo some silly Mac things
defaults write com.apple.finder AppleShowAllFiles YES # Show hidden files in the finder
defaults write com.apple.NetworkBrowser DisableAirDrop -bool YES # Disable AirDrop
}
install_homebrew
install_brew_apps
install_cask_apps
configure_mac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment