Skip to content

Instantly share code, notes, and snippets.

@nemzes
Last active August 29, 2022 06:55
Show Gist options
  • Save nemzes/9692b1a2651a4c1fc4a7d3b1e708b70f to your computer and use it in GitHub Desktop.
Save nemzes/9692b1a2651a4c1fc4a7d3b1e708b70f to your computer and use it in GitHub Desktop.
MacOS setup script
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew tap homebrew/cask
brew tap homebrew/cask-fonts
brew tap homebrew/cask-versions
brew install bettertouchtool coreutils discord-canary divvy docker firefox firefox-developer-edition font-fira-code gh git google-chrome google-chrome-canary google-drive httpie iterm2 itsycal jq keepassxc meld microsoft-teams node obsidian rowanj-gitx signal sound-control sqlite svgo tidal visual-studio-code
# Optionals
brew install azure-cli
brew install kubernetes-cli
brew install kubernetes-helm
brew install --cask https://raw.githubusercontent.com/caskroom/homebrew-cask/cda89554be604c9c35c042bd503d5199e2109f4f/Casks/sketch.rb
brew install libreoffice
brew install nordvpn
brew install slack
# Set up Google Drive
# Sync folder /sync/mac-nelson
# Then…
#
cd
mkdir sync_backups
mv .bash_profile .docker .gitconfig sync_backups
ln -s ~/Google\ Drive/My\ Drive/sync/mac-nelson/home/.bash_profile
ln -s ~/Google\ Drive/My\ Drive/sync/mac-nelson/home/.docker
ln -s ~/Google\ Drive/My\ Drive/sync/mac-nelson/home/.gitconfig
cd Library
ln -s ~/Google\ Drive/My\ Drive/sync/mac-nelson/home/Library/KeyBindings
# In iTerm2, load settings from ~/Google\ Drive/My\ Drive/sync/mac-nelson/iTerm2
# In BetterTouchTool, import preset from ~/Google\ Drive/My\ Drive/sync/mac-nelson/BetterTouchTool
# Itsycal pattern:
# w / E d MMM
defaults write -g InitialKeyRepeat -int 15
defaults write -g KeyRepeat -int 2
# Set hostname
sudo scutil --set HostName <new name>
sudo scutil --set LocalHostName <new name>
sudo scutil --set ComputerName <new name>
dscacheutil -flushcache
# restart
# Touch ID for sudo:
sudo vi /etc/pam.d/sudo
# Add this line at the top (under the header line):
auth sufficient pam_tid.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment