Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Mac system defaults tricks

System stuff for a mac

What the defaults do and how to undo them

Dropshadows on screenshots

defaults write disable-shadow -bool true
killall SystemUIServer


sudo launchctl unload -w /System/Library/LaunchDaemons/
sudo launchctl load -w /System/Library/LaunchDaemons/

GCC Compiler

brew install apple-gcc42
sudo ln -s /usr/local/bin/gcc-4.2 /usr/bin/gcc-4.2



chflags nohidden ~/Library

Dock shine

defaults write hide-mirror -bool true;killall Dock
defaults write hide-mirror -bool false;killall Dock

TextEdit ruler

defaults write ShowRuler 0
defaults delete ShowRuler

Quicktime player

defaults write MGCinematicWindowDebugForceNoRoundedCorners 1
defaults write MGCinematicWindowDebugForceNoRoundedCorners 0

Helpviewer DevMode

defaults write DevMode -bool true
defaults write DevMode -bool false

Fast windows

defaults write NSGlobalDomain NSWindowResizeTime .1
defaults write NSGlobalDomain NSWindowResizeTime .5

Mail names

defaults write AddressesIncludeNameOnPasteboard -bool false
defaults write AddressesIncludeNameOnPasteboard -bool true

Debug menu in Addressbook

defaults write ABShowDebugMenu -bool YES
defaults write ABShowDebugMenu -bool NO


sudo defaults write NSAppSleepDisabled -bool YES

Font Smoothing for Consolas

defaults -currentHost write -globalDomain AppleFontSmoothing -int 2

Reduce time-to-standby to 12 hours


sudo pmset -a standbydelay 43200

Dock in the corner


defaults write pinning -string start; killall Dock

Speed up animations


defaults write expose-animation-duration -float 0.15; killall Dock



efaults write ShowFullURLInSmartSearchField -bool true

Animation speed

defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO

Speed up keyboard repeat in Sublime Text

defaults write com.sublimetext ApplePressAndHoldEnabled -bool false

Speed up keyboard repeat everywhere


defaults write NSGlobalDomain ApplePressAndHoldEnabled -boolean false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.