tldr/pages/osx/defaults.md

29 lines
717 B
Markdown
Raw Normal View History

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