macOS applications and other programs use the defaults system to record user preferences and other information to be maintained when the application isn’t running (font for new documents, or the position of an Info panel). Much of this information is accessible through an application’s Preferences panel but sometimes they’re hidden. User defaults belong to domains, which typically correspond to individual applications. Applications, system services, and other programs have their own domains, they also share a domain named NSGlobalDomain. If a default isn’t specified in the application’s domain, it may be specified in NSGlobalDomain.
Print the help
defaults help
Command line interface to a user's defaults.
Syntax:
'defaults' [-currentHost | -host <hostname>] followed by one of the following:
read shows all defaults
read <domain> shows defaults for given domain
read <domain> <key> shows defaults for given domain, key
read-type <domain> <key> shows the type for the given domain, key
write <domain> <domain_rep> writes domain (overwrites existing)
write <domain> <key> <value> writes key for domain
rename <domain> <old_key> <new_key> renames old_key to new_key
delete <domain> deletes domain
delete <domain> <key> deletes key in domain
import <domain> <path to plist> writes the plist at path to domain
import <domain> - writes a plist from stdin to domain
export <domain> <path to plist> saves domain as a binary plist to path
export <domain> - writes domain as an xml plist to stdout
domains lists all domains
find <word> lists all entries containing word
help print this help
<domain> is ( <domain_name> | -app <application_name> | -globalDomain )
or a path to a file omitting the '.plist' extension
<value> is one of:
<value_rep>
-string <string_value>
-data <hex_digits>
-int[eger] <integer_value>
-float <floating-point_value>
-bool[ean] (true | false | yes | no)
-date <date_rep>
-array <value1> <value2> ...
-array-add <value1> <value2> ...
-dict <key1> <value1> <key2> <value2> ...
-dict-add <key1> <value1> ...
Read all defaults
defaults read
List all domains
defaults domains
All defaults by domain
for i in`defaults domains |tr',''\n'`;doecho"********* $i **********";echo;defaults read $i;done
List all entries containing word
defaults find Finder
Show the type for the given domain, key
defaults read-type ${domain}${key}
Rename old_key to new_key
defaults rename ${domain}${old_key}${new_key}
Dock
Postition
### Read current valuedefaults read com.apple.dock orientation### Set to "left"defaults write com.apple.dock orientation -string"left"&&killall Dock### Reset to default valuedefaults delete com.apple.dock orientation &&killall Dock
Change macOS Dock icon size
### Read current valuedefaults read com.apple.dock tilesize### Set to 36defaults write com.apple.dock tilesize -int"36"&&killall Dock### Reset to default valuedefaults delete com.apple.dock tilesize &&killall Dock
Enable highlight hover effect for the grid view of a stack (Dock)
### Read current valuedefaults read com.apple.dock mouse-over-hilite-stack### Set to truedefaults write com.apple.dock mouse-over-hilite-stack -bool true &&killall Dock### Reset to default valuedefaults delete com.apple.dock mouse-over-hilite-stack &&killall Dock
Autohide
### Read current valuedefaults read com.apple.dock "autohide"### Always display the Dockdefaults write com.apple.dock "autohide"-bool"false"&&killall Dock### Autohide the Dock when the mouse is outdefaults write com.apple.dock "autohide"-bool"true"&&killall Dock### Reset to default valuedefaults delete com.apple.dock "autohide"&&killall Dock
Autohide animation time
### Read current valuedefaults read com.apple.dock autohide-time-modifier### Set to 0.5 (default value)defaults write com.apple.dock autohide-time-modifier -float"0.5"&&killall Dock### Reset to default valuedefaults delete com.apple.dock autohide-time-modifier &&killall Dock
Show recents
### Read current valuedefaults read com.apple.dock show-recents### Set to true (default value)defaults write com.apple.dock show-recents -bool"true"&&killall Dock### Reset to default valuedefaults delete com.apple.dock show-recents &&killall Dock
Disable the Launchpad gesture (pinch with thumb and three fingers)
### Read current valuedefaults read com.apple.dock showLaunchpadGestureEnabled### Set to 0defaults write com.apple.dock showLaunchpadGestureEnabled -int 0 &&killall Dock### Reset to default valuedefaults delete com.apple.dock showLaunchpadGestureEnabled &&killall Dock
Add a spacer to the left side of the Dock (where the applications are)
### Read current valuedefaults read com.apple.dock persistent-apps### Set to defaults write com.apple.dock persistent-apps -array-add'{tile-data={}; tile-type="spacer-tile";}'&&killall Dock### Reset to default valuedefaults delete com.apple.dock persistent-apps &&killall Dock
Add a spacer to the right side of the Dock (where the Trash is)
### Read current valuedefaults read com.apple.dock persistent-others### Set to defaults write com.apple.dock persistent-others -array-add'{tile-data={}; tile-type="spacer-tile";}'&&killall Dock### Reset to default valuedefaults delete com.apple.dock persistent-others &&killall Dock
Hot corners Possible values: 0: no-op 2: Mission Control 3: Show application windows 4: Desktop 5: Start screen saver 6: Disable screen saver 7: Dashboard 10: Put display to sleep 11: Launchpad 12: Notification Center 13: Lock Screen
Top left screen corner → Mission Control
### Read current valuedefaults read com.apple.dock wvous-tl-cornerdefaults read com.apple.dock wvous-tl-modifier### Set to defaults write com.apple.dock wvous-tl-corner -int 2defaults write com.apple.dock wvous-tl-modifier -int 0### Reset to default valuedefaults delete com.apple.dock wvous-tl-cornerdefaults delete com.apple.dock wvous-tl-modifier
#Top right screen corner → Desktop
### Read current valuedefaults read com.apple.dock wvous-tr-cornerdefaults read com.apple.dock wvous-tr-modifier### Set to defaults write com.apple.dock wvous-tr-corner -int 4defaults write com.apple.dock wvous-tr-modifier -int 0### Reset to default valuedefaults delete com.apple.dock wvous-tr-cornerdefaults delete com.apple.dock wvous-tr-modifier
Bottom left screen corner → Start screen saver
### Read current valuedefaults read com.apple.dock wvous-bl-cornerdefaults read com.apple.dock wvous-bl-modifier### Set to defaults write com.apple.dock wvous-bl-corner -int 5defaults write com.apple.dock wvous-bl-modifier -int 0### Reset to default valuedefaults delete com.apple.dock wvous-bl-cornerdefaults delete com.apple.dock wvous-bl-modifier
Minimize animation effect
### Read current valuedefaults read com.apple.dock "mineffect"### Set to genie (default value)defaults write com.apple.dock "mineffect"-string"genie"&&killall Dock### Set to scaledefaults write com.apple.dock "mineffect"-string"scale"&&killall Dock### Set to suckdefaults write com.apple.dock "mineffect"-string"suck"&&killall Dock### Reset to default valuedefaults delete com.apple.dock "mineffect"&&killall Dock
Minimize windows into their application’s icon
### Read current valuedefaults read com.apple.dock minimize-to-application### Set to truedefaults write com.apple.dock minimize-to-application -bool true &&killall Dock### Reset to default valuedefaults delete com.apple.dock minimize-to-application &&killall Dock
Active applications only Only show opened apps in Dock.
### Read current valuedefaults read com.apple.dock "static-only"### Set to truedefaults write com.apple.dock "static-only"-bool"true"&&killall Dock### Reset to default valuedefaults delete com.apple.dock "static-only"&&killall Dock
Don’t animate opening applications from the Dock
### Read current valuedefaults read com.apple.dock launchanim### Set to falsedefaults write com.apple.dock launchanim -bool false &&killall Dock### Reset to default valuedefaults delete com.apple.dock launchanim &&killall Dock
Speed up Mission Control animations
### Read current valuedefaults read com.apple.dock expose-animation-duration### Set to 0.1defaults write com.apple.dock expose-animation-duration -float 0.1 &&killall Dock### Reset to default valuedefaults delete com.apple.dock expose-animation-duration &&killall Dock
Don’t group windows by application in Mission Control (i.e. use the old Exposé behavior instead)
### Read current valuedefaults read com.apple.dock expose-group-by-app### Set to falsedefaults write com.apple.dock expose-group-by-app -bool false &&killall Dock### Reset to default valuedefaults delete com.apple.dock expose-group-by-app &&killall Dock
Disable Dashboard
### Read current valuedefaults read com.apple.dashboard mcx-disabled### Set to truedefaults write com.apple.dashboard mcx-disabled -bool true### Reset to default valuedefaults delete com.apple.dashboard mcx-disabled
Don’t show Dashboard as a Space
### Read current valuedefaults read com.apple.dock dashboard-in-overlay### Set to truedefaults write com.apple.dock dashboard-in-overlay -bool true &&killall Dock### Reset to default valuedefaults delete com.apple.dock dashboard-in-overlay &&killall Dock
Don’t automatically rearrange Spaces based on most recent use
### Read current valuedefaults read com.apple.dock mru-spaces### Set to falsedefaults write com.apple.dock mru-spaces -bool false &&killall Dock### Reset to default valuedefaults delete com.apple.dock mru-spaces &&killall Dock
Remove the auto-hiding Dock delay
### Read current valuedefaults read com.apple.dock autohide-delay### Set to 0defaults write com.apple.dock autohide-delay -float 0 &&killall Dock### Reset to default valuedefaults delete com.apple.dock autohide-delay &&killall Dock
Make Dock icons of hidden applications translucent
### Read current valuedefaults read com.apple.dock showhidden### Set to truedefaults write com.apple.dock showhidden -bool true &&killall Dock### Reset to default valuedefaults delete com.apple.dock showhidden &&killall Dock
Two Dimensional Dock (disable the 3D mirror glass effect)
### Read current valuedefaults read com.apple.dock no-glass### Set to truedefaults write com.apple.dock no-glass -bool true &&killall Dock### Reset to default valuedefaults delete com.apple.dock no-glass &&killall Dock
Three Dimensional Dock (default)
### Read current valuedefaults read com.apple.dock no-glass### Set to falsedefaults write com.apple.dock no-glass -bool false &&killall Dock### Reset to default valuedefaults delete com.apple.dock no-glass &&killall Dock
Disable Bouncing dock icons
### Read current valuedefaults read com.apple.dock no-bouncing### Set to truedefaults write com.apple.dock no-bouncing -bool true &&killall Dock### Reset to default valuedefaults delete com.apple.dock no-bouncing &&killall Dock
Add a ‘Recent Applications’ stack to the Dock.
### Read current valuedefaults read com.apple.dock persistent-others### Set to truedefaults write com.apple.dock persistent-others -array-add'{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'&&killall Dock### Reset to default valuedefaults delete com.apple.dock persistent-others &&killall Dock
Change login screen background
### Read current valuesudo defaults read /Library/Preferences/com.apple.loginwindow DesktopPicture### Set to truesudo defaults write /Library/Preferences/com.apple.loginwindow DesktopPicture "/Library/Desktop Pictures/Aqua Blue.jpg"### Reset to default valuesudo defaults delete /Library/Preferences/com.apple.loginwindow DesktopPicture
Stacks, Activate Mouse Over Gradient: $ $ killall Dock To deactivate set back to NO
### Read current valuedefaults read com.apple.dock mouse-over-hilte-stack### Set to truedefaults write com.apple.dock mouse-over-hilte-stack -boolean true &&killall Dock### Reset to default valuedefaults delete com.apple.dock mouse-over-hilte-stack &&killall Dock
Screenshots
Disable shadow
### Read current valuedefaults read com.apple.screencapture "disable-shadow"### Set to false (default value)defaults write com.apple.screencapture "disable-shadow"-bool"false"### Reset to default valuedefaults delete com.apple.screencapture "disable-shadow"
Include date
### Read current valuedefaults read com.apple.screencapture "include-date"### Set to true (default value)defaults write com.apple.screencapture "include-date"-bool"true"### Reset to default valuedefaults delete com.apple.screencapture "include-date"
Set location
### Read current valuedefaults read com.apple.screencapture "location"### Set to ~/Desktop (default value)defaults write com.apple.screencapture "location"-string"~/Desktop"&&killall SystemUIServer### Reset to default valuedefaults delete com.apple.screencapture "location"&&killall SystemUIServer
Display thumbnail
### Read current valuedefaults read com.apple.screencapture "show-thumbnail"### Set to true (default value)defaults write com.apple.screencapture "show-thumbnail"-bool"true"### Reset to default valuedefaults delete com.apple.screencapture "show-thumbnail"
Choose screenshot format Choose the screenshots image format.
### Read current valuedefaults read com.apple.Safari SendDoNotTrackHTTPHeader### Set to truedefaults write com.apple.Safari SendDoNotTrackHTTPHeader -bool true### Reset to default valuedefaults delete com.apple.Safari SendDoNotTrackHTTPHeader
Update extensions automatically
### Read current valuedefaults read com.apple.Safari InstallExtensionUpdatesAutomatically### Set to truedefaults write com.apple.Safari InstallExtensionUpdatesAutomatically -bool true### Reset to default valuedefaults delete com.apple.Safari InstallExtensionUpdatesAutomatically
Mail
Disable send and reply animations in Mail.app
### Read current valuedefaults read com.apple.mail DisableReplyAnimationsdefaults read com.apple.mail DisableSendAnimations### Set to truedefaults write com.apple.mail DisableReplyAnimations -bool truedefaults write com.apple.mail DisableSendAnimations -bool true### Reset to default valuedefaults delete com.apple.mail DisableReplyAnimationsdefaults delete com.apple.mail DisableSendAnimations
***Copy email addresses as foo@example.com instead of Foo Bar <foo@example.com> in Mail.app
### Read current valuedefaults read com.apple.mail AddressesIncludeNameOnPasteboard### Set to truedefaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false### Reset to default valuedefaults delete com.apple.mail AddressesIncludeNameOnPasteboard
Add the keyboard shortcut ⌘ + Enter to send an email in Mail.app
### Read current valuedefaults read com.apple.mail NSUserKeyEquivalents### Set to defaults write com.apple.mail NSUserKeyEquivalents -dict-add"Send""@\U21a9"### Reset to default valuedefaults delete com.apple.mail NSUserKeyEquivalents
Display emails in threaded mode, sorted by date (oldest at the top)
### Read current valuedefaults read com.apple.mail DraftsViewerAttributes### Set to defaults write com.apple.mail DraftsViewerAttributes -dict-add"DisplayInThreadedMode"-string"yes"defaults write com.apple.mail DraftsViewerAttributes -dict-add"SortedDescending"-string"yes"defaults write com.apple.mail DraftsViewerAttributes -dict-add"SortOrder"-string"received-date"### Reset to default valuedefaults delete com.apple.mail DraftsViewerAttributes
Disable inline attachments (just show the icons)
### Read current valuedefaults read com.apple.mail DisableInlineAttachmentViewing### Set to truedefaults write com.apple.mail DisableInlineAttachmentViewing -bool true### Reset to default valuedefaults delete com.apple.mail DisableInlineAttachmentViewing
Disable automatic spell checking
### Read current valuedefaults read com.apple.mail SpellCheckingBehavior### Set to defaults write com.apple.mail SpellCheckingBehavior -string"NoSpellCheckingEnabled"### Reset to default valuedefaults delete com.apple.mail SpellCheckingBehavior
Force all Apple Mail messages to display as plain text.
### Read current valuedefaults read com.apple.mail PreferPlainText### Set to truedefaults write com.apple.mail PreferPlainText -bool true### Reset to default valuedefaults delete com.apple.mail PreferPlainText
Finder
The Finder is the default file manager on macOS. It is responsible for the launching of other applications, and for the overall user management of files, disks, and network volumes.
Quit
### Read current valuedefaults read com.apple.finder "QuitMenuItem"### Set to false (default value)defaults write com.apple.finder "QuitMenuItem"-bool"false"&&killall Finder### Reset to default valuedefaults delete com.apple.finder "QuitMenuItem"&&killall Finder
Disable window animations and Get Info animations
### Read current valuedefaults read com.apple.finder DisableAllAnimations### Set to truedefaults write com.apple.finder DisableAllAnimations -bool true &&killall Finder### Reset to default valuedefaults delete com.apple.finder DisableAllAnimations &&killall Finder
Set Desktop as the default location for new Finder windows For other paths, use PfLo and file:///full/path/here/
### Read current valuedefaults read com.apple.finder NewWindowTargetdefaults read com.apple.finder NewWindowTargetPath### Set to defaults write com.apple.finder NewWindowTarget -string"PfDe"defaults write com.apple.finder NewWindowTargetPath -string"file://${HOME}/Desktop/"### Reset to default valuedefaults delete com.apple.finder NewWindowTargetdefaults delete com.apple.finder NewWindowTargetPath
Show extensions
### Read current valuedefaults read NSGlobalDomain "AppleShowAllExtensions"### Set to false (default value)defaults write NSGlobalDomain "AppleShowAllExtensions"-bool"false"&&killall Finder### Reset to default valuedefaults delete NSGlobalDomain "AppleShowAllExtensions"&&killall Finder
Show hidden files Show hidden files in the Finder. You can toggle the value using ⌘ cmd+⇧ shift+..
### Read current valuedefaults read com.apple.finder "AppleShowAllFiles"### Set to false (default value)defaults write com.apple.finder "AppleShowAllFiles"-bool"false"&&killall Finder### Reset to default valuedefaults delete com.apple.finder "AppleShowAllFiles"&&killall Finder
Path bar Show path bar in the bottom of the Finder windows.
### Read current valuedefaults read com.apple.finder "ShowPathbar"### Set to false (default value)defaults write com.apple.finder "ShowPathbar"-bool"false"&&killall Finder### Reset to default valuedefaults delete com.apple.finder "ShowPathbar"&&killall Finder
Status bar
### Read current valuedefaults read com.apple.finder ShowStatusBar### Set to truedefaults write com.apple.finder ShowStatusBar -bool true &&killall Finder### Reset to default valuedefaults delete com.apple.finder ShowStatusBar &&killall Finder
Display full POSIX path as Finder window title
### Read current valuedefaults read com.apple.finder _FXShowPosixPathInTitle### Set to truedefaults write com.apple.finder _FXShowPosixPathInTitle -bool true &&killall Finder### Reset to default valuedefaults delete com.apple.finder _FXShowPosixPathInTitle &&killall Finder
Enable spring loading for directories
### Read current valuedefaults read NSGlobalDomain com.apple.springing.enable### Set to truedefaults write NSGlobalDomain com.apple.springing.enabled -bool true### Reset to default valuedefaults delete NSGlobalDomain com.apple.springing.enable
Remove the spring loading delay for directories
### Read current valuedefaults read NSGlobalDomain com.apple.springing.delay### Set to 0defaults write NSGlobalDomain com.apple.springing.delay -float 0### Reset to default valuedefaults delete NSGlobalDomain com.apple.springing.delay
Avoid creating .DS_Store files on network or USB volumes
### Read current valuedefaults read com.apple.desktopservices DSDontWriteNetworkStoresdefaults read com.apple.desktopservices DSDontWriteUSBStores### Set to truedefaults write com.apple.desktopservices DSDontWriteNetworkStores -bool truedefaults write com.apple.desktopservices DSDontWriteUSBStores -bool true### Reset to default valuedefaults delete com.apple.desktopservices DSDontWriteNetworkStoresdefaults delete com.apple.desktopservices DSDontWriteUSBStores
### Read current valuedefaults read com.apple.finder "FXPreferredViewStyle"### Set to icnv (default value) - Icon viewdefaults write com.apple.finder "FXPreferredViewStyle"-string"icnv"&&killall Finder### Set to glyv - Gallery Viewdefaults write com.apple.finder "FXPreferredViewStyle"-string"glyv"&&killall Finder### Set to clmv - Column viewdefaults write com.apple.finder "FXPreferredViewStyle"-string"clmv"&&killall Finder### Set to Nlsv - List viewdefaults write com.apple.finder "FXPreferredViewStyle"-string"Nlsv"&&killall Finder### Reset to default valuedefaults delete com.apple.finder "FXPreferredViewStyle"&&killall Finder
Disable the warning before emptying the Trash
### Read current valuedefaults read com.apple.finder WarnOnEmptyTrash### Set to falsedefaults write com.apple.finder WarnOnEmptyTrash -bool false &&killall Finder### Reset to default valuedefaults delete com.apple.finder WarnOnEmptyTrash &&killall Finder
Enable AirDrop over Ethernet and on unsupported Macs running Lion
### Read current valuedefaults read com.apple.NetworkBrowser BrowseAllInterfaces ### Set to falsedefaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true### Reset to default valuedefaults delete com.apple.NetworkBrowser BrowseAllInterfaces
Expand the following File Info panes: * “General” * “Open with” * “Sharing & Permissions”
### Read current valuedefaults read com.apple.finder FXInfoPanesExpanded### Set to defaults write com.apple.finder FXInfoPanesExpanded -dict\ General -bool true \ OpenWith -bool true \ Privileges -bool true### Reset to default valuedefaults delete com.apple.finder FXInfoPanesExpanded
Keep folders on top
### Read current valuedefaults read com.apple.finder "_FXSortFoldersFirst"### Set to false (default value)defaults write com.apple.finder "_FXSortFoldersFirst"-bool"false"&&killall Finder### Reset to default valuedefaults delete com.apple.finder "_FXSortFoldersFirst"&&killall Finder
Default search scope
### Read current valuedefaults read com.apple.finder "FXDefaultSearchScope"### Set to SCev (default value) - Search this Macdefaults write com.apple.finder "FXDefaultSearchScope"-string"SCev"&&killall Finder### Set to SCcf - Search the current folderdefaults write com.apple.finder "FXDefaultSearchScope"-string"SCcf"&&killall Finder### Set to SCsp - Use the previous search scopedefaults write com.apple.finder "FXDefaultSearchScope"-string"SCsp"&&killall Finder### Reset to default valuedefaults delete com.apple.finder "FXDefaultSearchScope"&&killall Finder
Empty bin items after 30 days
### Read current valuedefaults read com.apple.finder "FXRemoveOldTrashItems"### Set to false (default value) - Keep bin as isdefaults write com.apple.finder "FXRemoveOldTrashItems"-bool"false"&&killall Finder### Reset to default valuedefaults delete com.apple.finder "FXRemoveOldTrashItems"&&killall Finder
Changing file extension warning
### Read current valuedefaults read com.apple.finder "FXEnableExtensionChangeWarning"### Set to true (default value) - Display a warning when changing a file extension in the Finderdefaults write com.apple.finder "FXEnableExtensionChangeWarning"-bool"true"&&killall Finder### Reset to default valuedefaults delete com.apple.finder "FXEnableExtensionChangeWarning"&&killall Finder
Save to disk or iCloud by default Choose whether the default file save location is on disk or iCloud.
### Read current valuedefaults read NSGlobalDomain "NSDocumentSaveNewDocumentsToCloud"### Set to true (default value) - iCloud Documents is the default directory opened in the fileviewer dialog when saving a new documentdefaults write NSGlobalDomain "NSDocumentSaveNewDocumentsToCloud"-bool"true"### Reset to default valuedefaults delete NSGlobalDomain "NSDocumentSaveNewDocumentsToCloud"
Title bar icons
### Read current valuedefaults read com.apple.universalaccess "showWindowTitlebarIcons"### Set to false (default value) - Hide icon from the title bardefaults write com.apple.universalaccess "showWindowTitlebarIcons"-bool"false"&&killall Finder### Reset to default valuedefaults delete com.apple.universalaccess "showWindowTitlebarIcons"&&killall Finder
Adjust toolbar title rollover delay
### Read current valuedefaults read NSGlobalDomain "NSToolbarTitleViewRolloverDelay"### Set to 0.5 (default value)defaults write NSGlobalDomain "NSToolbarTitleViewRolloverDelay"-float"0.5"&&killall Finder### Reset to default valuedefaults delete NSGlobalDomain "NSToolbarTitleViewRolloverDelay"&&killall Finder
Set sidebar icon size
### Read current valuedefaults read NSGlobalDomain "NSTableViewDefaultSizeMode"### Set to 2 (default value)defaults write NSGlobalDomain "NSTableViewDefaultSizeMode"-int"2"&&killall Finder### Reset to default valuedefaults delete NSGlobalDomain "NSTableViewDefaultSizeMode"&&killall Finder
Desktop
Keep folders on top
### Read current valuedefaults read com.apple.finder "_FXSortFoldersFirstOnDesktop"### Set to false (default value)defaults write com.apple.finder "_FXSortFoldersFirstOnDesktop"-bool"false"&&killall Finder### Reset to default valuedefaults delete com.apple.finder "_FXSortFoldersFirstOnDesktop"&&killall Finder
All icons
### Read current valuedefaults read com.apple.finder "CreateDesktop"### Set to true (default value) - Show all iconsdefaults write com.apple.finder "CreateDesktop"-bool"true"&&killall Finder### Reset to default valuedefaults delete com.apple.finder "CreateDesktop"&&killall Finder
Disks
### Read current valuedefaults read com.apple.finder "ShowHardDrivesOnDesktop"### Set to false (default value) - Hide hard disksdefaults write com.apple.finder "ShowHardDrivesOnDesktop"-bool"false"&&killall Finder### Reset to default valuedefaults delete com.apple.finder "ShowHardDrivesOnDesktop"&&killall Finder
External disks
### Read current valuedefaults read com.apple.finder "ShowExternalHardDrivesOnDesktop"### Set to true (default value) - Show external disksdefaults write com.apple.finder "ShowExternalHardDrivesOnDesktop"-bool"true"&&killall Finder### Reset to default valuedefaults delete com.apple.finder "ShowExternalHardDrivesOnDesktop"&&killall Finder
Removable media Hide removable media (CDs, DVDs and iPods) on desktop
### Read current valuedefaults read com.apple.finder "ShowRemovableMediaOnDesktop"### Set to true (default value) - Show removable mediadefaults write com.apple.finder "ShowRemovableMediaOnDesktop"-bool"true"&&killall FinderReset to default valuedefaults delete com.apple.finder "ShowRemovableMediaOnDesktop"&&killall Finder
Connected servers Show connected servers on desktop
### Read current valuedefaults read com.apple.finder "ShowMountedServersOnDesktop"### Set to false (default value) - Hide connected serversdefaults write com.apple.finder "ShowMountedServersOnDesktop"-bool"false"&&killall Finder### Reset to default valuedefaults delete com.apple.finder "ShowMountedServersOnDesktop"&&killall Finder
Spotlight
Disable Spotlight indexing for any volume that gets mounted and has not yet been indexed before. Use sudo mdutil -i off "/Volumes/foo" to stop indexing any volume.
### Read current valuesudo defaults read /.Spotlight-V100/VolumeConfiguration Exclusions### Set tosudo defaults write /.Spotlight-V100/VolumeConfiguration Exclusions -array"/Volumes"### Reset to default valuesudo defaults delete /.Spotlight-V100/VolumeConfiguration Exclusions
Change indexing order and disable some search results Yosemite-specific search results (remove them if you are using macOS 10.9 or older): * MENU_DEFINITION * MENU_CONVERSION * MENU_EXPRESSION * MENU_SPOTLIGHT_SUGGESTIONS (send search queries to Apple) * MENU_WEBSEARCH (send search queries to Apple) * MENU_OTHER
The menu bar runs along the top of the screen on your Mac.
Flash clock time separators When enabled, the clock indicator (which by default is the colon) will flash on and off each second.
### Read current valuedefaults read com.apple.menuextra.clock "FlashDateSeparators"### Set to false (default value) - The time separator stays solid continuously.defaults write com.apple.menuextra.clock "FlashDateSeparators"-bool"false"&&killall SystemUIServer### Reset to default valuedefaults delete com.apple.menuextra.clock "FlashDateSeparators"&&killall SystemUIServer
Set menubar digital clock format This setting configures the time and date format for the menubar digital clock. Accepted values depend on your Language & Region settings.
ss for seconds. HH for 24-hour clock. EEE for 3-letter day of the week. d MMM for day of the month and 3-letter month.
### Read current valuedefaults read com.apple.menuextra.clock "DateFormat"### Set to "EEE d MMM HH:mm:ss" - Sat 3 Dec 21:46:18defaults write com.apple.menuextra.clock "DateFormat"-string"\"EEE d MMM HH:mm:ss\""### Reset to default valuedefaults delete com.apple.menuextra.clock "DateFormat"
Mission Control
Formerly known as Spaces, Mission Control allows a user to do the following:
⌃ ctrl+↑ up view all open application windows.
⌃ ctrl+↓ down view all open application windows of a specific application.
⌘ cmd+F3 Mission Control hide all application windows and show the desktop.
⌃ ctrl+← left/→ right manage application windows across multiple virtual desktops.
manage application windows across multiple monitors.
Rearrange automatically
### Read current valuedefaults read com.apple.dock "mru-spaces"### Set to true (default value) - Reorder Spaces based on most recent usedefaults write com.apple.dock "mru-spaces"-bool"true"&&killall Dock### Reset to default valuedefaults delete com.apple.dock "mru-spaces"&&killall Dock
Feedback Assistant
The Feedback Assistant app allows user to submit reports for developer or public betas.
Autogather Choose whether to autogather large files when submitting a feedback report.
### Read current valuedefaults read com.apple.appleseed.FeedbackAssistant "Autogather"### Set to true (default value) - Feedback Assistant gathers large files when submitting a reportdefaults write com.apple.appleseed.FeedbackAssistant "Autogather"-bool"true"### Reset to default valuedefaults delete com.apple.appleseed.FeedbackAssistant "Autogather"
Xcode
Xcode is an integrated development environment for macOS containing a suite of software development tools developed by Apple.
Add Additional Counterpart Suffixes Add additional counterpart suffixes that Xcode should consider in the “Related Items > Counterparts” menu.
### Read current valuedefaults read com.apple.dt.Xcode "IDEAdditionalCounterpartSuffixes"### Add "ViewModel" and "View" counterpart suffixesdefaults write com.apple.dt.Xcode "IDEAdditionalCounterpartSuffixes"-array-add"ViewModel""View"&&killall Xcode### Add the "Router", "Interactor" and "Builder" counterpart suffixesdefaults write com.apple.dt.Xcode "IDEAdditionalCounterpartSuffixes"-array-add"Router""Interactor""Builder"&&killall Xcode### Reset to default valuedefaults delete com.apple.dt.Xcode "IDEAdditionalCounterpartSuffixes"&&killall Xcode
Show Build Durations Show build durations in the Activity Viewer in Xcode’s toolbar at the top of the workspace window.
### Read current valuedefaults read com.apple.dt.Xcode "ShowBuildOperationDuration"### Set to false (default value) - Do not show the build duration in the Xcode's toolbardefaults write com.apple.dt.Xcode "ShowBuildOperationDuration"-bool"false"&&killall Xcode### Reset to default valuedefaults delete com.apple.dt.Xcode "ShowBuildOperationDuration"&&killall Xcode
Simulator
Installed as part of the Xcode tools, Simulator is a Mac app simulating iPhone, iPad, Apple Watch, or Apple TV environments.
Set screenshot location
### Read current valuedefaults read com.apple.iphonesimulator "ScreenShotSaveLocation"### Set to ~/Pictures/Screenshots (default value)defaults write com.apple.iphonesimulator "ScreenShotSaveLocation"-string"~/Pictures/Screenshots"### Reset to default valuedefaults delete com.apple.iphonesimulator "ScreenShotSaveLocation"
TextEdit
TextEdit allows you to open and edit rich text, plain text and HTML documents.
Set default document format Set default document format as rich text (.rtf) or plain text (.txt).
### Read current valuedefaults read com.apple.TextEdit RichText### Set to true (default value) - Rich text is enabled.defaults write com.apple.TextEdit RichText -bool true &&killall TextEdit### Reset to default valuedefaults delete com.apple.TextEdit RichText &&killall TextEdit
# Open and save files as UTF-8 in TextEdit
### Read current valuedefaults read com.apple.TextEdit PlainTextEncodingdefaults read com.apple.TextEdit PlainTextEncodingForWrite### Set to 4defaults write com.apple.TextEdit PlainTextEncoding -int 4defaults write com.apple.TextEdit PlainTextEncodingForWrite -int 4### Reset to default valuedefaults delete com.apple.TextEdit PlainTextEncodingdefaults delete com.apple.TextEdit PlainTextEncodingForWrite
Time Machine
Don’t offer new disks for Time Machine backup
### Read current valuedefaults read com.apple.TimeMachine "DoNotOfferNewDisksForBackup"### Set to false (default value) - When a new disk is connected, system prompts to ask if you want to use it as a backup volume.defaults write com.apple.TimeMachine "DoNotOfferNewDisksForBackup"-bool"false"### Reset to default valuedefaults delete com.apple.TimeMachine "DoNotOfferNewDisksForBackup"
Activity Monitor
Activity Monitor is the built-in utility for monitoring your systems resource usage, such as CPU, RAM, Disk, Network, and Energy.
Update Frequency
### Read current valuedefaults read com.apple.ActivityMonitor UpdatePeriod### Set to 5s (default value)defaults write com.apple.ActivityMonitor UpdatePeriod -int 5 &&killall Activity\ Monitor### Reset to default valuedefaults delete com.apple.ActivityMonitor UpdatePeriod &&killall Activity\ Monitor
Dock Icon type * 0 - Just show the App’s regular icon. * 2 - Show Network usage over time, as two mirrored line graphs. The top (blue) chart shows down-stream traffic. The bottom (red) chart shows up-stream traffic. * 3 - Show Disk usage over time, as two mirrored line graphs. The top (blue) chart shows disk read traffic. The bottom (red) chart shows disk write traffic. * 5 - Show the current CPU usages, as a verticle meter. * 6 - Show CPU usage history, graphed over time. If your device has 4 threads or less, it’ll show one graph per thread, all stacked vertically. If you have more than 4 threads, then only one bar graph will be shown, for the total CPU usage.
### Read current valuedefaults read com.apple.ActivityMonitor IconType### Set to 0 (default value)defaults write com.apple.ActivityMonitor IconType -int 0 &&killall Activity\ Monitor### Reset to default valuedefaults delete com.apple.ActivityMonitor IconType &&killall Activity\ Monitor
Show the main window when launching Activity Monitor
### Read current valuedefaults read com.apple.ActivityMonitor OpenMainWindow### Set to truedefaults write com.apple.ActivityMonitor OpenMainWindow -bool true &&killall Activity\ Monitor### Reset to default valuedefaults delete com.apple.ActivityMonitor OpenMainWindow &&killall Activity\ Monitor
Show all processes in Activity Monitor
### Read current valuedefaults read com.apple.ActivityMonitor ShowCategory### Set to 0defaults write com.apple.ActivityMonitor ShowCategory -int 0 &&killall Activity\ Monitor### Reset to default valuedefaults delete com.apple.ActivityMonitor ShowCategory &&killall Activity\ Monitor
### Read current valuedefaults read com.apple.addressbook ABShowDebugMenu### Set to truedefaults write com.apple.addressbook ABShowDebugMenu -bool true### Reset to default valuedefaults delete com.apple.addressbook ABShowDebugMenu
Enable the debug menu in iCal (pre-10.8)
### Read current valuedefaults read com.apple.iCal IncludeDebugMenu### Set to truedefaults write com.apple.iCal IncludeDebugMenu -bool true### Reset to default valuedefaults delete com.apple.iCal IncludeDebugMenu
Enable the debug menu in Disk Utility
### Read current valuedefaults read com.apple.DiskUtility DUDebugMenuEnableddefaults read com.apple.DiskUtility advanced-image-options### Set to truedefaults write com.apple.DiskUtility DUDebugMenuEnabled -bool truedefaults write com.apple.DiskUtility advanced-image-options -bool true### Reset to default valuedefaults delete com.apple.DiskUtility DUDebugMenuEnableddefaults delete com.apple.DiskUtility advanced-image-options
Auto-play videos when opened with QuickTime Player
### Read current valuedefaults read com.apple.QuickTimePlayerX MGPlayMovieOnOpen### Set to truedefaults write com.apple.QuickTimePlayerX MGPlayMovieOnOpen -bool true### Reset to default valuedefaults delete com.apple.QuickTimePlayerX MGPlayMovieOnOpen
Terminal & iTerm 2
Only use UTF-8 in Terminal.app
### Read current valuedefaults read com.apple.terminal StringEncodings### Set to 4defaults write com.apple.terminal StringEncodings -array 4### Reset to default valuedefaults delete com.apple.terminal StringEncodings
Enable “focus follows mouse” for Terminal.app and all X11 apps i.e. hover over a window and start typing in it without clicking first
### Read current valuedefaults read com.apple.terminal FocusFollowsMousedefaults read org.x.X11 wm_ffm### Set to truedefaults write com.apple.terminal FocusFollowsMouse -bool truedefaults write org.x.X11 wm_ffm -bool true### Reset to default valuedefaults delete com.apple.terminal FocusFollowsMousedefaults delete org.x.X11 wm_ffm
Enable Secure Keyboard Entry in Terminal.app See: https://security.stackexchange.com/a/47786/8918
### Read current valuedefaults read com.apple.terminal SecureKeyboardEntry### Set to truedefaults write com.apple.terminal SecureKeyboardEntry -bool true### Reset to default valuedefaults delete com.apple.terminal SecureKeyboardEntry
Disable the annoying line marks
### Read current valuedefaults read com.apple.Terminal ShowLineMarks### Set to 0defaults write com.apple.Terminal ShowLineMarks -int 0### Reset to default valuedefaults delete com.apple.Terminal ShowLineMarks
Don’t display the annoying prompt when quitting iTerm
### Read current valuedefaults read com.googlecode.iterm2 PromptOnQuit### Set to falsedefaults write com.googlecode.iterm2 PromptOnQuit -bool false### Reset to default valuedefaults delete com.googlecode.iterm2 PromptOnQuit
Miscellaneous
Help Menu position
### Read current valuedefaults read com.apple.helpviewer DevMode### Set to false (default value) - By default, the Help Menu is always-on-topdefaults write com.apple.helpviewer DevMode -bool false### Reset to default valuedefaults delete com.apple.helpviewer DevMode
Enable spring loading for all Dock items Drag a file over an icon in the Dock, hover, and the application will open. The behaviour is unchanged if the app is already open.
### Read current valuedefaults read com.apple.dock "enable-spring-load-actions-on-all-items"### Set to false (default value) - Spring loading is disabled for Dock items.defaults write com.apple.dock "enable-spring-load-actions-on-all-items"-bool"false"&&killall Dock### Reset to default valuedefaults delete com.apple.dock "enable-spring-load-actions-on-all-items"&&killall Dock
Show indicator lights for open applications in the Dock
### Read current valuedefaults read com.apple.dock show-process-indicators### Set to truedefaults write com.apple.dock show-process-indicators -bool true &&killall Dock### Reset to default valuedefaults delete com.apple.dock show-process-indicators &&killall Dock
Wipe all (default) app icons from the Dock This is only really useful when setting up a new Mac, or if you don’t use the Dock to launch apps.
### Read current valuedefaults read com.apple.dock persistent-apps### Set to truedefaults write com.apple.dock persistent-apps -array&&killall Dock### Reset to default valuedefaults delete com.apple.dock persistent-apps &&killall Dock
Show Music song notifications
### Read current valuedefaults read com.apple.Music "userWantsPlaybackNotifications"### Set to false (default value) - Notifications will not be displayed.defaults write com.apple.Music "userWantsPlaybackNotifications"-bool"false"&&killall Music### Reset to default valuedefaults delete com.apple.Music "userWantsPlaybackNotifications"&&killall Music
General UI/UX
Disable transparency in the menu bar and elsewhere on Yosemite
### Read current valuedefaults read com.apple.universalaccess reduceTransparency### Set to truedefaults write com.apple.universalaccess reduceTransparency -bool true### Reset to default valuedefaults delete com.apple.universalaccess reduceTransparency
Set highlight color
### Read current valuedefaults read NSGlobalDomain AppleHighlightColor### Set to greendefaults write NSGlobalDomain AppleHighlightColor -string"0.764700 0.976500 0.568600"### Reset to default valuedefaults delete NSGlobalDomain AppleHighlightColor
Always show scrollbars Possible values: * WhenScrolling * Automatic * Always
### Read current valuedefaults read NSGlobalDomain AppleShowScrollBars### Set to "Always"defaults write NSGlobalDomain AppleShowScrollBars -string"Always"### Reset to default valuedefaults delete NSGlobalDomain AppleShowScrollBars
Disable the over-the-top focus ring animation
### Read current valuedefaults read NSGlobalDomain NSUseAnimatedFocusRing### Set to falsedefaults write NSGlobalDomain NSUseAnimatedFocusRing -bool false### Reset to default valuedefaults delete NSGlobalDomain NSUseAnimatedFocusRing
Adjust toolbar title rollover delay
### Read current valuedefaults read NSGlobalDomain NSToolbarTitleViewRolloverDelay### Set to 0defaults write NSGlobalDomain NSToolbarTitleViewRolloverDelay -float 0### Reset to default valuedefaults delete NSGlobalDomain NSToolbarTitleViewRolloverDelay
Increase window resize speed for Cocoa applications
### Read current valuedefaults read NSGlobalDomain NSWindowResizeTime### Set to 0.001defaults write NSGlobalDomain NSWindowResizeTime -float 0.001### Reset to default valuedefaults delete NSGlobalDomain NSWindowResizeTime
Expand save panel by default
### Read current valuedefaults read NSGlobalDomain NSNavPanelExpandedStateForSaveModedefaults read NSGlobalDomain NSNavPanelExpandedStateForSaveMode2### Set to truedefaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool truedefaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true### Reset to default valuedefaults delete NSGlobalDomain NSNavPanelExpandedStateForSaveModedefaults delete NSGlobalDomain NSNavPanelExpandedStateForSaveMode2
Expand print panel by default
### Read current valuedefaults read NSGlobalDomain PMPrintingExpandedStateForPrintdefaults read NSGlobalDomain PMPrintingExpandedStateForPrint2### Set to truedefaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool truedefaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true### Reset to default valuedefaults delete NSGlobalDomain PMPrintingExpandedStateForPrintdefaults delete NSGlobalDomain PMPrintingExpandedStateForPrint2
Automatically quit printer app once the print jobs complete
### Read current valuedefaults read com.apple.print.PrintingPrefs "Quit When Finished"### Set to truedefaults write com.apple.print.PrintingPrefs "Quit When Finished"-bool true### Reset to default valuedefaults delete com.apple.print.PrintingPrefs "Quit When Finished"
Disable the “Are you sure you want to open this application?” dialog
### Read current valuedefaults read com.apple.LaunchServices LSQuarantine### Set to falsedefaults write com.apple.LaunchServices LSQuarantine -bool false### Reset to default valuedefaults delete com.apple.LaunchServices LSQuarantine
Display ASCII control characters using caret notation in standard text views Try e.g. cd /tmp; unidecode "\x{0000}" > cc.txt; open -e cc.txt
### Read current valuedefaults read NSGlobalDomain NSTextShowsControlCharacters### Set to truedefaults write NSGlobalDomain NSTextShowsControlCharacters -bool true### Reset to default valuedefaults delete NSGlobalDomain NSTextShowsControlCharacters
Disable Resume system-wide
### Read current valuedefaults read com.apple.systempreferences NSQuitAlwaysKeepsWindows### Set to falsedefaults write com.apple.systempreferences NSQuitAlwaysKeepsWindows -bool false### Reset to default valuedefaults delete com.apple.systempreferences NSQuitAlwaysKeepsWindows
Disable automatic termination of inactive apps
### Read current valuedefaults read NSGlobalDomain NSDisableAutomaticTermination### Set to truedefaults write NSGlobalDomain NSDisableAutomaticTermination -bool true### Reset to default valuedefaults delete NSGlobalDomain NSDisableAutomaticTermination
Disable the crash reporter
### Read current valuedefaults read com.apple.CrashReporter DialogType### Set to "none"defaults write com.apple.CrashReporter DialogType -string"none"### Reset to default valuedefaults delete com.apple.CrashReporter DialogType
Reveal IP address, hostname, OS version, etc. when clicking the clock in the login window
### Read current valuedefaults read /Library/Preferences/com.apple.loginwindow### Set to truesudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName### Reset to default valuesudo defaults delete /Library/Preferences/com.apple.loginwindow AdminHostInfo
Disable automatic capitalization
### Read current valuedefaults read NSGlobalDomain NSAutomaticCapitalizationEnabled### Set to falsedefaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool false### Reset to default valuedefaults delete NSGlobalDomain NSAutomaticCapitalizationEnabled
Disable smart dashes
### Read current valuedefaults read NSGlobalDomain NSAutomaticDashSubstitutionEnabled### Set to falsedefaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false### Reset to default valuedefaults delete NSGlobalDomain NSAutomaticDashSubstitutionEnabled
Disable automatic period substitution
### Read current valuedefaults read NSGlobalDomain NSAutomaticPeriodSubstitutionEnabled### Set to falsedefaults write NSGlobalDomain NSAutomaticPeriodSubstitutionEnabled -bool false### Reset to default valuedefaults delete NSGlobalDomain NSAutomaticPeriodSubstitutionEnabled
Disable smart quotes
### Read current valuedefaults read NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled### Set to falsedefaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false### Reset to default valuedefaults delete NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled
Disable auto-correct
### Read current valuedefaults read NSGlobalDomain NSAutomaticSpellingCorrectionEnabled### Set to falsedefaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false### Reset to default valuedefaults delete NSGlobalDomain NSAutomaticSpellingCorrectionEnabled
Trackpad, mouse, keyboard, Bluetooth accessories, and input
Trackpad: enable tap to click for this user and for the login screen
### Read current valuedefaults read com.apple.driver.AppleBluetoothMultitouch.trackpad Clickingdefaults-currentHost read NSGlobalDomain com.apple.mouse.tapBehaviordefaults read NSGlobalDomain com.apple.mouse.tapBehavior### Set to truedefaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true### Set to 1defaults-currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1### Set to 1defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1### Reset to default valuedefaults delete com.apple.driver.AppleBluetoothMultitouch.trackpad Clickingdefaults-currentHost delete NSGlobalDomain com.apple.mouse.tapBehaviordefaults delete NSGlobalDomain com.apple.mouse.tapBehavior
### Read current valuedefaults read NSGlobalDomain com.apple.swipescrolldirection### Set to falsedefaults write NSGlobalDomain com.apple.swipescrolldirection -bool false### Reset to default valuedefaults delete NSGlobalDomain com.apple.swipescrolldirection
Increase sound quality for Bluetooth headphones/headsets
### Read current valuedefaults read com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)"### Set to 40defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)"-int 40### Reset to default valuedefaults delete com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)"
Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)
### Read current valuedefaults read NSGlobalDomain AppleKeyboardUIMode### Set to 3defaults write NSGlobalDomain AppleKeyboardUIMode -int 3### Reset to default valuedefaults delete NSGlobalDomain AppleKeyboardUIMode
Use scroll gesture with the Ctrl (^) modifier key to zoom