Skip to content

Instantly share code, notes, and snippets.

Last active Oct 1, 2018
What would you like to do?
OS X defaults.
# Show remaining battery time; hide percentage
# defaults write ShowPercent -string "NO"
# defaults write ShowTime -string "YES"
# Expand save panel by default
# defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
# Expand print panel by default
# defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
# Disable opening and closing window animations
# defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
# Increase window resize speed for Cocoa applications
# defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
# Disable Resume system-wide
# defaults write NSGlobalDomain NSQuitAlwaysKeepsWindows -bool false
# Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)
# defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# Enable subpixel font rendering on non-Apple LCDs
defaults write NSGlobalDomain AppleFontSmoothing -int 2
# Enable tap to click (Trackpad) for this user and for the login screen
# defaults write Clicking -bool true
# defaults -currentHost write NSGlobalDomain -int 1
# defaults write NSGlobalDomain -int 1
# Require password immediately after sleep or screen saver begins
defaults write askForPassword -int 1
defaults write askForPasswordDelay -int 0
# Show all filename extensions in Finder
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# Avoid creating .DS_Store files on network volumes
defaults write DSDontWriteNetworkStores -bool true
# Empty Trash securely by default
defaults write EmptyTrashSecurely -bool true
# Enable AirDrop over Ethernet and on unsupported Macs running Lion
# defaults write BrowseAllInterfaces -bool true
# Show the ~/Library folder
chflags nohidden ~/Library
# Automatically hide and show the Dock
defaults write autohide -bool true
# Force the Dock to only show running applications
defaults write static-only -bool TRUE
# Only use UTF-8 in
defaults write StringEncodings -array 4
# Disable the Ping sidebar in iTunes
# defaults write disablePingSidebar -bool true
# Disable all the other Ping stuff in iTunes
# defaults write disablePing -bool true
# Make ⌘ + F focus the search input in iTunes
# defaults write NSUserKeyEquivalents -dict-add "Target Search Field" "@F"
# Disable send and reply animations in
# defaults write DisableReplyAnimations -bool true
# defaults write DisableSendAnimations -bool true
# Reset Launchpad
# [ -e ~/Library/Application\ Support/Dock/*.db ] && rm ~/Library/Application\ Support/Dock/*.db
# Prevent Time Machine from prompting to use new hard drives as backup volume
defaults write DoNotOfferNewDisksForBackup -bool true
# Disable local Time Machine backups
hash tmutil &> /dev/null && sudo tmutil disablelocal
# Kill affected applications
for app in Finder Dock Mail Safari iTunes iCal Address\ Book SystemUIServer; do killall "$app" > /dev/null 2>&1; done
echo "Done. Note that some of these changes require a logout/restart to take effect."
defaults write "Apple Bitpool Max (editable)" 80
defaults write "Apple Bitpool Min (editable)" 48
defaults write "Apple Initial Bitpool (editable)" 40
defaults write "Negotiated Bitpool" 48
defaults write "Negotiated Bitpool Max" 53
defaults write "Negotiated Bitpool Min" 48
defaults write "Stream - Flush Ring on Packet Drop (editable)" 30
defaults write "Stream - Max Outstanding Packets (editable)" 15
defaults write "Stream Resume Delay" "0.75"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment