mirror of
https://github.com/yannbertrand/macos-defaults
synced 2024-12-14 21:52:33 +00:00
062d8b5217
Co-authored-by: Yvonnick FRIN <frin.yvonnick@gmail.com>
47 lines
1 KiB
Handlebars
47 lines
1 KiB
Handlebars
# [{{ name }}](../readme.md)
|
|
|
|
## {{ title }}
|
|
|
|
> {{{ description }}}
|
|
|
|
- **Tested on macOS**:
|
|
{{# versions }}
|
|
* {{ . }}
|
|
{{/ versions }}
|
|
- **Parameter type**: {{ param.type }}
|
|
{{# param.values }}
|
|
* {{ . }}
|
|
{{/ param.values }}
|
|
|
|
{{# if requirements }}
|
|
### Requirements
|
|
{{# requirements }}
|
|
- [`{{ name }}`](../../{{ folder }}/{{ key }}/readme.md#set-to-{{ value }}) must be set to `{{ value }}`
|
|
{{/ requirements }}
|
|
|
|
{{/ if }}
|
|
{{# examples }}
|
|
### Set to `{{{ value }}}`{{# if default }} (default value){{/ if }}
|
|
```bash
|
|
defaults write {{ ../domain }} {{ ../key }} -{{ ../param.type }} {{{ value }}}{{# if ../after }} && {{ ../after }}{{/ if }}
|
|
```
|
|
{{# video }}
|
|
[Link to a demo video]({{ filename }})
|
|
{{/ video }}
|
|
{{# image }}
|
|
![Example output with value set to {{{ ../value }}}]({{ filename }})
|
|
{{/ image }}
|
|
{{# text }}
|
|
- {{{ . }}}
|
|
{{/ text }}
|
|
|
|
{{/ examples }}
|
|
### Read current value
|
|
```bash
|
|
defaults read {{ domain }} {{ key }}
|
|
```
|
|
|
|
## Delete current value
|
|
```bash
|
|
defaults delete {{ domain }} {{ key }}{{# if after }} && {{ after }}{{/ if }}
|
|
```
|