Skip to content

Instantly share code, notes, and snippets.

@Alanaktion
Created April 7, 2016 16:44
Show Gist options
  • Save Alanaktion/e2c000a53c2c3b5e043f6ee691b15f94 to your computer and use it in GitHub Desktop.
Save Alanaktion/e2c000a53c2c3b5e043f6ee691b15f94 to your computer and use it in GitHub Desktop.
OS X Defaults
# I have issues with OS X's defaults. Luckily, most are easy to change.
# This is heavily based on saetia's gist: https://gist.github.com/saetia/1623487
# Disable autocomplete, which effectively disables that really stupid Escape key autocomplete handler
defaults write -g NSUseSpellCheckerForCompletions -bool false
# Disable window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
# Expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
# Disable ext change warning
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# Avoid creating .DS_Store files on network volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# Trackpad: map bottom right corner to right-click
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 2 && \
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true && \
defaults -currentHost write NSGlobalDomain com.apple.trackpad.trackpadCornerClickBehavior -int 1 && \
defaults -currentHost write NSGlobalDomain com.apple.trackpad.enableSecondaryClick -bool true
# Enable the Develop menu and the Web Inspector in Safari
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true && \
defaults write com.apple.Safari IncludeDevelopMenu -bool true && \
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true && \
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true && \
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
# Disable WebkitNightly.app's homepage
defaults write org.webkit.nightly.WebKit StartPageDisabled -bool true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment