mirror of
https://github.com/yannbertrand/macos-defaults
synced 2024-12-24 02:13:07 +00:00
58 lines
1.4 KiB
Handlebars
58 lines
1.4 KiB
Handlebars
|
---
|
|||
|
metaTitle: {{{ title }}} | {{{ name }}} | macOS defaults
|
|||
|
---
|
|||
|
# {{{ title }}}
|
|||
|
|
|||
|
> {{{ description }}}
|
|||
|
|
|||
|
- **Testé sur macOS**:
|
|||
|
{{# versions }}
|
|||
|
* {{ . }}
|
|||
|
{{/ versions }}
|
|||
|
- **Type de paramètre**: {{ param.type }}
|
|||
|
{{# param.values }}
|
|||
|
* {{ . }}
|
|||
|
{{/ param.values }}
|
|||
|
|
|||
|
{{# if requirements }}
|
|||
|
## Prérequis
|
|||
|
{{# requirements }}
|
|||
|
- [`{{ name }}`](../..{{ ../url }}{{ folder }}/{{ key }}.html#avec-la-valeur-{{ value }}) doit avoir la valeur `{{ value }}`
|
|||
|
{{/ requirements }}
|
|||
|
|
|||
|
{{/ if }}
|
|||
|
{{# examples }}
|
|||
|
## Avec la valeur `{{{ value }}}`{{# if default }} (par défaut){{/ if }}
|
|||
|
```bash
|
|||
|
defaults write {{ ../domain }} {{ ../key }} -{{ ../param.type }} {{{ value }}}{{# if ../after }} &&
|
|||
|
{{ ../after }}{{/ if }}
|
|||
|
```
|
|||
|
{{# video }}
|
|||
|
<video autoplay loop muted playsinline width="{{ width }}" height="{{ height }}" style="max-width: 100%; height: auto">
|
|||
|
<source src="./{{ ../../folder }}-{{ ../../key }}-{{ filename }}" type="video/mp4">
|
|||
|
Exemple avec la valeur {{{ ../value }}}
|
|||
|
</video>
|
|||
|
{{/ video }}
|
|||
|
{{# image }}
|
|||
|
<img
|
|||
|
src="./{{ ../../folder }}-{{ ../../key }}-{{ filename }}"
|
|||
|
alt="Exemple avec la valeur {{{ ../value }}}"
|
|||
|
width="{{ width }}" height="{{ height }}" style="height: auto"
|
|||
|
/>
|
|||
|
{{/ image }}
|
|||
|
|
|||
|
{{# text }}
|
|||
|
- {{{ . }}}
|
|||
|
{{/ text }}
|
|||
|
|
|||
|
{{/ examples }}
|
|||
|
## Lire la valeur courante
|
|||
|
```bash
|
|||
|
defaults read {{ domain }} {{ key }}
|
|||
|
```
|
|||
|
|
|||
|
## Supprimer la valeur courante
|
|||
|
```bash
|
|||
|
defaults delete {{ domain }} {{ key }}{{# if after }} && {{ after }}{{/ if }}
|
|||
|
```
|