macos-defaults/build/production/templates/page.md.handlebars

70 lines
1.9 KiB
Handlebars
Raw Normal View History

---
metaTitle: {{{ title }}} | {{{ name }}} | macOS defaults
2020-09-06 13:23:04 +00:00
meta:
- property: "og:title"
content: macOS defaults > {{{ name }}} > {{{ title }}}
2020-09-06 13:23:04 +00:00
- name: "description"
content: {{{ escapeDoubleQuote description }}}
2020-09-06 13:23:04 +00:00
- property: "og:description"
content: {{{ escapeDoubleQuote description }}}
2020-09-06 13:23:04 +00:00
- property: "twitter:card"
content: "summary"
- property: "twitter:image"
content: "https://inspiring-hopper-66c5ab.netlify.app/media-1x1.webp"
- property: "og:image"
content: "https://inspiring-hopper-66c5ab.netlify.app/media-1x1.jpg"
---
# {{{ title }}}
> {{{ description }}}
- **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 }}
## Set to `{{{ value }}}`{{# if default }} (default value){{/ 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">
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 }}
{{# text }}
- {{{ . }}}
{{/ text }}
{{/ examples }}
## Read current value
```bash
defaults read {{ domain }} {{ key }}
```
## Delete current value
```bash
defaults delete {{ domain }} {{ key }}{{# if after }} && {{ after }}{{/ if }}
```