Skip to content

Instantly share code, notes, and snippets.

@cajames
Last active July 9, 2025 14:25
Show Gist options
  • Save cajames/ebf45be6879b1c16780e5f61e292fa14 to your computer and use it in GitHub Desktop.
Save cajames/ebf45be6879b1c16780e5f61e292fa14 to your computer and use it in GitHub Desktop.
Script to setup a new Developer Mac
# 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 dotfiles
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)"
# Gotta go
brew install go
# Node + NPM + Yarn.. Cuz Node.
brew install npm
brew install yarn
brew install n
# Run Github Commands from Terminal
brew install gh
# Install Neovim & LazyVim
brew install neovim
git clone https://github.com/LazyVim/starter ~/.config/nvim
rm -rf ~/.config/nvim/.git
echo "export EDITOR='nvim'" >>~/.zshrc
echo "alias nv='nvim'" >>~/.zshrc
brew install ripgrep
brew install fzf
brew install fd
brew install zoxide
brew install eza
# Install all useful Apps
brew install --cask google-chrome
brew install --cask moom
brew install --cask visual-studio-code
brew install --cask sublime-merge
brew install --cask zed
brew install --cask appcleaner
brew install --cask caffeine
brew install --cask 1password
brew install --cask dropbox
brew install --cask docker
brew install --cask spotify
brew install --cask postman
brew install --cask nordvpn
brew install --cask obsidian
brew install --cask git-credential-manager
brew install --cask ghostty
brew install --cask beeper
brew install --cask microsoft-teams
brew install --cask adobe-creative-cloud
brew install --cask zoom
brew install --cask raycast
brew install --cask hazeover
brew install --cask windows-app
brew install --cask bartender
brew install --cask cleanshot
brew install --cask fantastical
brew install --cask superhuman
brew install --cask zen
brew install --cask datagrip
# Docker and git management
brew install lazydocker
echo "alias ldo='lazydocker'" >>~/.zshrc
brew install lazygit
echo "alias lg='lazygit'" >>~/.zshrc
# Install Coding Font
# Note: homebrew/cask-fonts was deprecated in 2024, fonts are now in the main cask
brew install --cask font-fira-code
brew install --cask 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 904280696 # Things Todo
# 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.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install starship
brew install starship
echo 'eval "$(starship init zsh)"' >>~/.zshrc
# Install GVM to manage go
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
#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