Skip to content

Instantly share code, notes, and snippets.



Last active Mar 20, 2017
What would you like to do?
# OS X Tweaks
# ===========
# General
# -------
# Disable smart quotes and dashes
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
# Rebuild LaunchServices to remove duplicates from "Open With" menu
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
# Disable from starting everytime a device is plugged in
defaults -currentHost write disableHotPlug -bool true
# Allow Finder to quit
defaults write QuitMenuItem -bool true
# Input
# -----
# Enable full keyboard access for all UI controls
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# Speed up key repeat rate
defaults write NSGlobalDomain KeyRepeat -int 0.02
# Disable press-and-hold keys to increase key repeat rate
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
# Decrease the delay until keys are repeated
defaults write NSGlobalDomain InitialKeyRepeat -int 12
# Disable autocorrect
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
# Trackpad & mouse speed
defaults write -g 2
defaults write -g 2.5
# defaults write -g 1
# Security
# ---------------
# Disable the "Are you sure you want to open this application from the Internet?" dialog
defaults write LSQuarantine -bool false
# defaults write LSQuarantine -bool true
# Disable Get Keeper to allow any app for any source to be installed
sudo spctl --master-disable
# sudo spctl --master-enable
# Save documents to disk, not iCloud
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
# Check for software updates daily
defaults write ScheduleFrequency -int 1
# Apps
# ----
# Disable Safari’s thumbnail cache for History and Top Sites
defaults write DebugSnapshotsUpdatePolicy -int 2
# Animations
# ----------
# Expand all save & print dialogs by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true
# Speed up dialog boxes and resizing
defaults write NSGlobalDomain NSWindowResizeTime .1
# defaults write NSGlobalDomain NSWindowResizeTime .5
# Disable window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
# defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool true
# Disable Finder animations
defaults write DisableAllAnimations -bool true
# defaults write DisableAllAnimations -bool false
# Disable .DS_Store files on network shares
defaults write DSDontWriteNetworkStores TRUE
# defaults delete DSDontWriteNetworkStores
# Disable QuickLook animations
defaults write -g QLPanelAnimationDuration -float 0
# Speed up Mission Control animations
defaults write expose-animation-duration -float 0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment