2020-09-26 18:20:23 +00:00
|
|
|
|
---
|
|
|
|
|
metaTitle: {{{ title }}} | {{{ name }}} | macOS defaults
|
|
|
|
|
meta:
|
|
|
|
|
- property: "og:title"
|
|
|
|
|
content: macOS defaults > {{{ name }}} > {{{ title }}}
|
|
|
|
|
- name: "description"
|
|
|
|
|
content: {{{ escapeDoubleQuote description }}}
|
|
|
|
|
- property: "og:description"
|
|
|
|
|
content: {{{ escapeDoubleQuote description }}}
|
|
|
|
|
- property: "twitter:card"
|
|
|
|
|
content: "summary"
|
|
|
|
|
- property: "twitter:image"
|
2020-09-20 19:47:59 +00:00
|
|
|
|
content: "https://macos-defaults.netlify.app/media-1x1.webp"
|
2020-09-26 18:20:23 +00:00
|
|
|
|
- property: "og:image"
|
2020-09-20 19:47:59 +00:00
|
|
|
|
content: "https://macos-defaults.netlify.app/media-1x1.jpg"
|
2020-09-26 18:20:23 +00:00
|
|
|
|
---
|
|
|
|
|
# {{{ title }}}
|
|
|
|
|
|
2021-04-04 10:49:28 +00:00
|
|
|
|
{{{ description }}}
|
2020-09-26 18:20:23 +00:00
|
|
|
|
|
|
|
|
|
- **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 }}
|
2021-04-04 10:49:28 +00:00
|
|
|
|
## {{# if title }}{{{ title }}}{{ else }}Avec la valeur `{{ value }}`{{/ if }}{{# if default }} (par défaut){{/ if }}
|
|
|
|
|
{{# if text }}
|
|
|
|
|
|
|
|
|
|
{{# text }}
|
|
|
|
|
{{{ . }}}
|
|
|
|
|
{{/ text }}
|
|
|
|
|
{{/ if}}
|
|
|
|
|
|
2020-09-26 18:20:23 +00:00
|
|
|
|
```bash
|
2021-04-04 10:49:28 +00:00
|
|
|
|
defaults write {{ ../domain }} {{ ../key }} -{{# if command }}{{ command }}{{ else }}{{ ../param.type }}{{/ if }} {{# each value }}{{{ shellescape this }}} {{/ each }}{{# if ../after }}&& {{ ../after }}{{/ if }}
|
2020-09-26 18:20:23 +00:00
|
|
|
|
```
|
|
|
|
|
{{# 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 }}
|
|
|
|
|
|
|
|
|
|
{{/ examples }}
|
|
|
|
|
## Lire la valeur courante
|
|
|
|
|
```bash
|
|
|
|
|
defaults read {{ domain }} {{ key }}
|
|
|
|
|
```
|
|
|
|
|
|
2021-04-04 10:49:28 +00:00
|
|
|
|
## Remettre la valeur à l'état initial
|
|
|
|
|
{{# if deleteAlert }}
|
|
|
|
|
::: {{ deleteAlert.type }}
|
|
|
|
|
{{{ deleteAlert.message }}}
|
|
|
|
|
:::
|
|
|
|
|
{{/ if }}
|
2020-09-26 18:20:23 +00:00
|
|
|
|
```bash
|
|
|
|
|
defaults delete {{ domain }} {{ key }}{{# if after }} && {{ after }}{{/ if }}
|
|
|
|
|
```
|