Last active
August 14, 2023 04:01
-
-
Save cajames/ebf45be6879b1c16780e5f61e292fa14 to your computer and use it in GitHub Desktop.
Script to setup a new Developer Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile | |
eval "$(/opt/homebrew/bin/brew shellenv)" | |
# Node + NPM + Yarn.. Cuz Node. | |
brew install npm | |
brew install yarn | |
brew install n | |
# Install all useful Apps | |
brew install google-chrome | |
brew install hyper | |
brew install moom | |
brew install visual-studio-code | |
brew install sublime-text | |
brew install sublime-merge | |
brew install alfred | |
brew install appcleaner | |
brew install caffeine | |
brew install 1password | |
brew install dropbox | |
brew install docker --cask | |
brew install spotify | |
brew install postman | |
brew install nordvpn | |
brew install wavebox | |
brew install obsidian | |
brew install git-credential-manager | |
# Install Coding Font | |
brew tap homebrew/cask-fonts | |
brew install font-fira-code | |
brew install font-ia-writer-quattro | |
# 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 1521432881 # Session Pomodoro | |
mas install 904280696 # Things Todo | |
# Run Github Commands from Terminal | |
brew install 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 > ~/.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