Skip to content

Instantly share code, notes, and snippets.

@mtpettyp
Last active May 11, 2023 14:00
Show Gist options
  • Save mtpettyp/1595e204ead9c8d6a9518958b6e547a5 to your computer and use it in GitHub Desktop.
Save mtpettyp/1595e204ead9c8d6a9518958b6e547a5 to your computer and use it in GitHub Desktop.
Mac Setup
#Rosetta
softwareupdate --install-rosetta
# Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Git
brew install git
ssh-keygen -t ed25519 -C "mike@pettypiece.ca"
cat <<EOT >> ~/.ssh/config
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
EOT
ssh-add -K ~/.ssh/id_ed25519
# Homeshick
git clone https://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick
$HOME/.homesick/repos/homeshick/bin/homeshick clone mtpettyp/dotfiles
# Homebrew Brewfile
brew bundle install --file=~/.homesick/repos/dotfiles/Brewfile
# Mac App Store applications
# AutoMute
mas install 1118136179
# WireGuard
mas install 1451685025
# Set right click
defaults write com.apple.driver.AppleBluetoothMultitouch.mouse MouseButtonMode TwoButton
defaults write com.apple.driver.AppleHIDMouse MouseButtonMode TwoButton
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 2
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -int 0
defaults write com.apple.AppleMultitouchTrackpad TrackpadCornerSecondaryClick -int 2
defaults write com.apple.AppleMultitouchTrackpad TrackpadRightClick -int 0
# Standard function key
defaults write "Apple Global Domain" com.apple.keyboard.fnState -int 1;
# Disable Siri in the menu bar
defaults write com.apple.Siri StatusMenuVisible -int 0
# Make Menu Bar clock analog
defaults write com.apple.menuextra.clock IsAnalog -int 1
# May also have to log out and back in
killall cfprefsd && killall Finder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment