2020-09-20 09:16:08 +00:00
|
|
|
|
---
|
2020-09-13 15:38:00 +00:00
|
|
|
|
metaTitle: {{{ title }}} | {{{ name }}} | macOS defaults
|
2020-09-06 13:23:04 +00:00
|
|
|
|
meta:
|
|
|
|
|
- property: "og:title"
|
2020-09-13 15:38:00 +00:00
|
|
|
|
content: macOS defaults > {{{ name }}} > {{{ title }}}
|
2020-09-06 13:23:04 +00:00
|
|
|
|
- name: "description"
|
2021-04-05 09:42:18 +00:00
|
|
|
|
content: {{{ metaTag description }}}
|
2020-09-06 13:23:04 +00:00
|
|
|
|
- property: "og:description"
|
2021-04-05 09:42:18 +00:00
|
|
|
|
content: {{{ metaTag description }}}
|
2020-09-06 13:23:04 +00:00
|
|
|
|
- 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-06 13:23:04 +00:00
|
|
|
|
- property: "og:image"
|
2020-09-20 19:47:59 +00:00
|
|
|
|
content: "https://macos-defaults.netlify.app/media-1x1.jpg"
|
2020-09-20 09:16:08 +00:00
|
|
|
|
---
|
2020-09-13 15:38:00 +00:00
|
|
|
|
# {{{ title }}}
|
2020-09-20 09:16:08 +00:00
|
|
|
|
|
2021-04-04 10:49:28 +00:00
|
|
|
|
{{{ description }}}
|
2020-09-20 09:16:08 +00:00
|
|
|
|
|
2021-04-04 14:34:17 +00:00
|
|
|
|
<!-- break lists -->
|
|
|
|
|
|
2020-09-20 09:16:08 +00:00
|
|
|
|
- **Tested on macOS**:
|
|
|
|
|
{{# versions }}
|
|
|
|
|
* {{ . }}
|
|
|
|
|
{{/ versions }}
|
|
|
|
|
- **Parameter type**: {{ param.type }}
|
|
|
|
|
{{# param.values }}
|
|
|
|
|
* {{ . }}
|
|
|
|
|
{{/ param.values }}
|
|
|
|
|
|
|
|
|
|
{{# if requirements }}
|
|
|
|
|
## Requirements
|
|
|
|
|
{{# requirements }}
|
|
|
|
|
- [`{{ name }}`](../../{{ folder }}/{{ key }}.html#set-to-{{ value }}) must be set to `{{ value }}`
|
|
|
|
|
{{/ requirements }}
|
|
|
|
|
|
|
|
|
|
{{/ if }}
|
|
|
|
|
{{# examples }}
|
2021-04-04 10:49:28 +00:00
|
|
|
|
## {{# if title }}{{{ title }}}{{ else }}Set to `{{ value }}`{{/ if }}{{# if default }} (default value){{/ if }}
|
|
|
|
|
{{# if text }}
|
|
|
|
|
|
|
|
|
|
{{# text }}
|
|
|
|
|
{{{ . }}}
|
|
|
|
|
{{/ text }}
|
|
|
|
|
{{/ if}}
|
|
|
|
|
|
2020-09-20 09:16:08 +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-20 09:16:08 +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">
|
|
|
|
|
Example output with value set to {{{ ../value }}}
|
|
|
|
|
</video>
|
|
|
|
|
{{/ video }}
|
|
|
|
|
{{# image }}
|
|
|
|
|
<img
|
|
|
|
|
src="./{{ ../../folder }}-{{ ../../key }}-{{ filename }}"
|
|
|
|
|
alt="Example output with value set to {{{ ../value }}}"
|
|
|
|
|
width="{{ width }}" height="{{ height }}" style="height: auto"
|
|
|
|
|
/>
|
|
|
|
|
{{/ image }}
|
|
|
|
|
|
|
|
|
|
{{/ examples }}
|
|
|
|
|
## Read current value
|
|
|
|
|
```bash
|
|
|
|
|
defaults read {{ domain }} {{ key }}
|
|
|
|
|
```
|
|
|
|
|
|
2021-04-04 10:49:28 +00:00
|
|
|
|
## Reset to default value
|
2020-11-13 11:22:04 +00:00
|
|
|
|
{{# if deleteAlert }}
|
|
|
|
|
::: {{ deleteAlert.type }}
|
|
|
|
|
{{{ deleteAlert.message }}}
|
|
|
|
|
:::
|
|
|
|
|
{{/ if }}
|
2020-09-20 09:16:08 +00:00
|
|
|
|
```bash
|
|
|
|
|
defaults delete {{ domain }} {{ key }}{{# if after }} && {{ after }}{{/ if }}
|
|
|
|
|
```
|