--- metaTitle: {{{ title }}} | {{{ name }}} | macOS defaults meta: - property: "og:title" content: macOS defaults > {{{ name }}} > {{{ title }}} - name: "description" content: {{{ json description }}} - property: "og:description" content: {{{ json description }}} - property: "twitter:card" content: "summary" - property: "twitter:image" content: "https://macos-defaults.netlify.app/media-1x1.webp" - property: "og:image" content: "https://macos-defaults.netlify.app/media-1x1.jpg" --- # {{{ 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 }} ## {{# if title }}{{{ title }}}{{ else }}Avec la valeur `{{ value }}`{{/ if }}{{# if default }} (par défaut){{/ if }} {{# if text }} {{# text }} {{{ . }}} {{/ text }} {{/ if}} ```bash defaults write {{ ../domain }} {{ ../key }} -{{# if command }}{{ command }}{{ else }}{{ ../param.type }}{{/ if }} {{# each value }}{{{ shellescape this }}} {{/ each }}{{# if ../after }}&& {{ ../after }}{{/ if }} ``` {{# video }} {{/ video }} {{# image }} Exemple avec la valeur {{{ ../value }}} {{/ image }} {{/ examples }} ## Lire la valeur courante ```bash defaults read {{ domain }} {{ key }} ``` ## Remettre la valeur à l'état initial {{# if deleteAlert }} ::: {{ deleteAlert.type }} {{{ deleteAlert.message }}} ::: {{/ if }} ```bash defaults delete {{ domain }} {{ key }}{{# if after }} && {{ after }}{{/ if }} ```