Skip to content

Instantly share code, notes, and snippets.

@mstevenson

mstevenson/osxtweaks.txt

Last active Mar 20, 2017
Embed
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 Photos.app from starting everytime a device is plugged in
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true
# Allow Finder to quit
defaults write com.apple.finder 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 com.apple.trackpad.scaling 2
defaults write -g com.apple.mouse.scaling 2.5
# defaults write -g com.apple.mouse.scaling 1
# Security
# ---------------
# Disable the "Are you sure you want to open this application from the Internet?" dialog
defaults write com.apple.LaunchServices LSQuarantine -bool false
# defaults write com.apple.LaunchServices 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 com.apple.SoftwareUpdate ScheduleFrequency -int 1
# Apps
# ----
# Disable Safari’s thumbnail cache for History and Top Sites
defaults write com.apple.Safari 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 com.apple.finder DisableAllAnimations -bool true
# defaults write com.apple.finder DisableAllAnimations -bool false
# Disable .DS_Store files on network shares
defaults write com.apple.desktopservices DSDontWriteNetworkStores TRUE
# defaults delete com.apple.desktopservices DSDontWriteNetworkStores
# Disable QuickLook animations
defaults write -g QLPanelAnimationDuration -float 0
# Speed up Mission Control animations
defaults write com.apple.dock expose-animation-duration -float 0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment