Skip to content

Instantly share code, notes, and snippets.

@tonit
Forked from captainsafia/mac_dev_setup.sh
Created August 15, 2018 13:50
Show Gist options
  • Save tonit/202976051a1a4e6c12967fb5ff4ac093 to your computer and use it in GitHub Desktop.
Save tonit/202976051a1a4e6c12967fb5ff4ac093 to your computer and use it in GitHub Desktop.
A set of commands I use to configure my Mac for development
# Create a global gitignore for macOS
curl https://raw.githubusercontent.com/github/gitignore/master/Global/macOS.gitignore >> ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
# Send screenshots to a directory that isn't the desktop
mkdir -p ~/Screenshots
defaults write com.apple.screencapture location ~/Screenshots
# Show all hidden files (like dotfiles)
defaults write com.apple.finder AppleShowAllFiles YES; killall Finder;
# DANGERZONE: Disable Gatekeeper permanently to allow opening apps from unidentified developers
sudo defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool NO
# Disable smart quotes to save yourself from pesky syntax errors when copy pasting from Notes/TextEdit
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment