2012-06-18 01:10:31 +02:00
|
|
|
|
# OS X defaults
|
|
|
|
|
#
|
|
|
|
|
# most of it taken from @mathiasbynens
|
|
|
|
|
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
|
|
|
|
|
########################################################################
|
|
|
|
|
|
2012-06-28 19:45:03 +02:00
|
|
|
|
###############################################################################
|
|
|
|
|
# General UI/UX #
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
2012-06-18 01:10:31 +02:00
|
|
|
|
# Expand save panel by default
|
|
|
|
|
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
|
|
|
|
|
|
|
|
|
|
# Expand print panel by default
|
|
|
|
|
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
|
|
|
|
|
|
|
|
|
|
# Disable the “Are you sure you want to open this application?” dialog
|
|
|
|
|
defaults write com.apple.LaunchServices LSQuarantine -bool false
|
|
|
|
|
|
2012-06-28 19:45:03 +02:00
|
|
|
|
# Disable automatic termination of inactive apps
|
|
|
|
|
defaults write NSGlobalDomain NSDisableAutomaticTermination -bool true
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
|
# Trackpad, mouse, keyboard, and input #
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
2012-06-18 01:10:31 +02:00
|
|
|
|
# Disable auto-correct
|
|
|
|
|
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
|
|
|
|
|
|
2012-06-28 19:45:03 +02:00
|
|
|
|
###############################################################################
|
|
|
|
|
# Screen #
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
2012-06-18 01:10:31 +02:00
|
|
|
|
# Save screenshots to the desktop
|
|
|
|
|
defaults write com.apple.screencapture location -string "$HOME/Desktop"
|
|
|
|
|
|
|
|
|
|
# Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF)
|
|
|
|
|
defaults write com.apple.screencapture type -string "png"
|
|
|
|
|
|
2012-06-28 19:45:03 +02:00
|
|
|
|
###############################################################################
|
|
|
|
|
# Finder #
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
2012-06-18 01:10:31 +02:00
|
|
|
|
# Allow text selection in Quick Look
|
|
|
|
|
defaults write com.apple.finder QLEnableTextSelection -bool true
|
|
|
|
|
|
2012-06-28 19:45:03 +02:00
|
|
|
|
# Disable the warning when changing a file extension
|
|
|
|
|
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
|
|
|
|
|
|
2012-06-18 01:10:31 +02:00
|
|
|
|
# Disable disk image verification
|
|
|
|
|
defaults write com.apple.frameworks.diskimages skip-verify -bool true
|
|
|
|
|
defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
|
|
|
|
|
defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
|
|
|
|
|
|
|
|
|
|
# Automatically open a new Finder window when a volume is mounted
|
|
|
|
|
defaults write com.apple.frameworks.diskimages auto-open-ro-root -bool true
|
|
|
|
|
defaults write com.apple.frameworks.diskimages auto-open-rw-root -bool true
|
|
|
|
|
defaults write com.apple.finder OpenWindowForNewRemovableDisk -bool true
|
|
|
|
|
|
|
|
|
|
# Avoid creating .DS_Store files on network volumes
|
|
|
|
|
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
|
|
|
|
|
|
|
|
|
|
# Enable snap-to-grid for desktop icons
|
|
|
|
|
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
|
|
|
|
|
|
|
|
|
|
# Disable the warning before emptying the Trash
|
|
|
|
|
defaults write com.apple.finder WarnOnEmptyTrash -bool false
|
|
|
|
|
|
|
|
|
|
# Empty Trash securely by default
|
2012-06-25 18:52:41 +02:00
|
|
|
|
#defaults write com.apple.finder EmptyTrashSecurely -bool true
|
2012-06-18 01:10:31 +02:00
|
|
|
|
|
|
|
|
|
# Show the ~/Library folder
|
2012-06-28 19:45:03 +02:00
|
|
|
|
chflags nohidden ~/Library
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
|
# Dock & hot corners #
|
|
|
|
|
###############################################################################
|
2012-06-18 01:10:31 +02:00
|
|
|
|
|
|
|
|
|
# Show indicator lights for open applications in the Dock
|
|
|
|
|
defaults write com.apple.dock show-process-indicators -bool true
|
|
|
|
|
|
|
|
|
|
# Add a spacer to the left side of the Dock (where the applications are)
|
|
|
|
|
#defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
|
|
|
|
|
# Add a spacer to the right side of the Dock (where the Trash is)
|
|
|
|
|
#defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}'
|
|
|
|
|
|
2012-06-28 19:45:03 +02:00
|
|
|
|
###############################################################################
|
|
|
|
|
# Safari & WebKit #
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
2012-06-25 18:52:41 +02:00
|
|
|
|
# Enable Safari's develop menu
|
|
|
|
|
#defaults write com.apple.Safari IncludeDevelopMenu -bool true
|
|
|
|
|
#defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
|
|
|
|
|
|
2012-06-18 01:10:31 +02:00
|
|
|
|
# Enable Safari’s debug menu
|
2012-06-25 18:52:41 +02:00
|
|
|
|
#defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
|
2012-06-18 01:10:31 +02:00
|
|
|
|
|
|
|
|
|
# Make Safari’s search banners default to Contains instead of Starts With
|
|
|
|
|
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false
|
|
|
|
|
|
2012-06-28 19:45:03 +02:00
|
|
|
|
# Set web style sheet
|
|
|
|
|
defaults write com.apple.Safari UserStyleSheetEnabled -bool true
|
|
|
|
|
defaults write com.apple.Safari UserStyleSheetLocationURLString -string "~/.dotfiles/webstyle.css"
|
|
|
|
|
defaults write com.apple.Safari WebKitUserStyleSheetLocationPreferenceKey -string "~/.dotfiles/webstyle.css"
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
|
# Address Book, Dashboard, iCal, iTunes, Mail, and Disk Utility #
|
|
|
|
|
###############################################################################
|
2012-06-18 01:10:31 +02:00
|
|
|
|
|
|
|
|
|
# Copy email addresses as `foo@example.com` instead of `Foo Bar <foo@example.com>` in Mail.app
|
|
|
|
|
defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
|
|
|
|
|
|
2012-06-28 19:45:03 +02:00
|
|
|
|
###############################################################################
|
|
|
|
|
# Terminal #
|
|
|
|
|
###############################################################################
|
2012-06-25 18:52:41 +02:00
|
|
|
|
|
2012-06-28 19:45:03 +02:00
|
|
|
|
# Only use UTF-8 in Terminal.app
|
|
|
|
|
defaults write com.apple.terminal StringEncodings -array 4
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
|
# Time Machine #
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
|
|
# Prevent Time Machine from prompting to use new hard drives as backup volume
|
|
|
|
|
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
|