mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 12:59:00 +00:00
Update cheatsheets
This commit is contained in:
33
osx/defaults
Normal file
33
osx/defaults
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, osx]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# defaults
|
||||
|
||||
> Read and write macOS user configuration for applications.
|
||||
> More information: <https://keith.github.io/xcode-man-pages/defaults.1.html>.
|
||||
|
||||
- Read system defaults for an application option:
|
||||
|
||||
`defaults read "{{application}}" "{{option}}"`
|
||||
|
||||
- Read default values for an application option:
|
||||
|
||||
`defaults read -app "{{application}}" "{{option}}"`
|
||||
|
||||
- Search for a keyword in domain names, keys, and values:
|
||||
|
||||
`defaults find "{{keyword}}"`
|
||||
|
||||
- Write the default value of an application option:
|
||||
|
||||
`defaults write "{{application}}" "{{option}}" {{-type}} {{value}}`
|
||||
|
||||
- Speed up Mission Control animations:
|
||||
|
||||
`defaults write com.apple.Dock expose-animation-duration -float 0.1`
|
||||
|
||||
- Delete all defaults of an application:
|
||||
|
||||
`defaults delete "{{application}}"`
|
||||
Reference in New Issue
Block a user