mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 16:13:31 +02:00
defaults: Included domain attribute
domain attrribute to access system defaults example for default write added
This commit is contained in:
parent
0c227cca56
commit
2177d2b752
1 changed files with 11 additions and 7 deletions
|
@ -2,18 +2,22 @@
|
|||
|
||||
> Access OS X user defaults
|
||||
|
||||
- read all defaults
|
||||
- read system default value
|
||||
|
||||
`defaults read -app {{app-name}}`
|
||||
`defaults read {{domain}} {{key}}`
|
||||
|
||||
- read specific defaults
|
||||
- read default values of applications
|
||||
|
||||
`defaults read -app {{app-name}} {{key}}`
|
||||
`defaults read -app {{app_name}} {{key}}`
|
||||
|
||||
- write key value
|
||||
|
||||
`defaults write -app {{app-name}} {{key}} {{-type}} {{value}}`
|
||||
`defaults write {{domain}} {{key}} {{-type}} {{value}}`
|
||||
|
||||
- delete all defaults
|
||||
- Speed up Mission Control animations
|
||||
|
||||
`defaults delete -app {{app-name}}`
|
||||
`defaults write com.apple.Dock expose-animation-duration -float 0.1`
|
||||
|
||||
- __[caution]__ delete all defaults of domain
|
||||
|
||||
`defaults delete {{domain}}`
|
Loading…
Add table
Reference in a new issue