Skip to content

Instantly share code, notes, and snippets.

@MattRay0295
Forked from cajames/setup_mac.sh
Created November 17, 2020 02:37
Show Gist options
  • Save MattRay0295/8ddf3485cb395644f86712b97f088959 to your computer and use it in GitHub Desktop.
Save MattRay0295/8ddf3485cb395644f86712b97f088959 to your computer and use it in GitHub Desktop.
Script to setup a new Developer Mac on Catalina
# Script to setup a new Mac
# Fix up the key repeat issues on MacOS Sierra. Need the key repeats for VIM!
defaults write NSGlobalDomain KeyRepeat -int 2
defaults write NSGlobalDomain InitialKeyRepeat -int 15
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
# Finder should show all .files
defaults write com.apple.finder AppleShowAllFiles YES
# Disable default Mac behaviour to reopen everything on startup from previous shut down.
defaults write -g ApplePersistence -bool FALSE;
defaults write com.apple.dock show-recents -bool FALSE;
# Defaults Mojave Dark Mode
# defaults write -g AppleInterfaceStyle Dark;
# Auto-hide the dock.
defaults write com.apple.dock autohide -float 1
defaults write com.apple.dock autohide-time-modifier -float 1;
# Only show active programs in the dock. Nothing else.
defaults write com.apple.dock static-only -bool TRUE;
# Reset Dock
killall Dock
# Install Brew
$(which ruby) -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Node + NPM + Yarn.. Cuz Node.
brew install npm
brew install yarn
brew install n
# Install all useful Apps
brew cask install google-chrome
brew cask install firefox
brew cask install hyper
brew cask install moom
brew cask install visual-studio-code
brew cask install sublime-text
brew cask install sublime-merge
brew cask install alfred
brew cask install appcleaner
brew cask install caffeine
brew cask install slack
brew cask install 1password
brew cask install dropbox
brew cask install docker
brew cask install spotify
brew cask install postman
brew cask install drawio
# Install Coding Font
brew tap homebrew/cask-fonts
brew cask install font-fira-code
# App Store CLI
brew install mas
# Need to have logged into the App Store on the mac for these to work
mas install 775737590 # IA Writer Mac
mas install 975937182 # Fantastical 2
mas install 1082624744 # Gifox - GIF screen recorder
# Run Github Commands from Terminal
npm i -g gh
# Install and change to ZSH
brew install zsh zsh-completions
chmod go-w '/usr/local/share'
chsh -s /bin/zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Git Aliases
# Download the Gist and add to .zshrc
curl https://gist.githubusercontent.com/cajames/02055c4a5c6cbe5a1d66333abb5f06b0/raw/3ede9385161b4e1f354d3faa2b9bd26693bce475/.git.aliases.sh > ~/.git.aliases.sh
echo "\n#Source Git Aliases\nsource ~/.git.aliases.sh\n" >> ~/.zshrc
#Finished
echo "\n\nFinished! 🎉 Now log out and log back in for changes to take effect."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment