2015-12-30 21:45:24 +03:00
|
|
|
# defaults
|
|
|
|
|
2017-07-26 21:13:26 +03:00
|
|
|
> Read and write macOS user configuration for applications.
|
2021-01-16 17:04:01 +03:00
|
|
|
> More information: <https://ss64.com/osx/defaults.html>.
|
2015-12-30 21:45:24 +03:00
|
|
|
|
2016-02-13 02:22:07 +03:00
|
|
|
- Read system defaults for an application option:
|
2015-12-30 21:45:24 +03:00
|
|
|
|
2016-02-13 02:22:07 +03:00
|
|
|
`defaults read {{application}} {{option}}`
|
2015-12-30 21:45:24 +03:00
|
|
|
|
2016-02-13 02:22:07 +03:00
|
|
|
- Read default values for an application option:
|
2015-12-30 21:45:24 +03:00
|
|
|
|
2016-02-13 02:22:07 +03:00
|
|
|
`defaults read -app {{application}} {{option}}`
|
2015-12-30 21:45:24 +03:00
|
|
|
|
2021-01-16 17:04:01 +03:00
|
|
|
- Search for a keyword in domain names, keys, and values:
|
|
|
|
|
|
|
|
`defaults find {{keyword}}`
|
|
|
|
|
2016-02-13 02:22:07 +03:00
|
|
|
- Write the default value of an application option:
|
2015-12-30 21:45:24 +03:00
|
|
|
|
2016-02-13 02:22:07 +03:00
|
|
|
`defaults write {{application}} {{option}} {{-type}} {{value}}`
|
2015-12-30 21:45:24 +03:00
|
|
|
|
2016-02-13 02:22:07 +03:00
|
|
|
- Speed up Mission Control animations:
|
2015-12-30 21:45:24 +03:00
|
|
|
|
2016-01-02 01:24:20 +03:00
|
|
|
`defaults write com.apple.Dock expose-animation-duration -float 0.1`
|
|
|
|
|
2016-02-13 02:22:07 +03:00
|
|
|
- Delete all defaults of an application:
|
2016-01-02 01:24:20 +03:00
|
|
|
|
2016-02-13 02:22:07 +03:00
|
|
|
`defaults delete {{application}}`
|