Created
August 14, 2018 01:06
-
-
Save captainsafia/141abca2ac33f23eb8774864bd5b0e1e to your computer and use it in GitHub Desktop.
A set of commands I use to configure my Mac for development
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
# Create a global gitignore for macOS | |
cat 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 |
@captainsafia can you fix the type (s/cat/curl), please? I don't see a way to create PRs for gists. Guess its easier for people to refer to your original version instead of looking through its forks.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Corrected here: https://gist.github.com/lakehanne/3abca6e7b23adaf7d57302d5d15a09af