From e25d271d320c59714228442b06b19716ccd4cd2c Mon Sep 17 00:00:00 2001 From: "L. Yeung" Date: Wed, 19 Jun 2024 11:55:33 +0800 Subject: [PATCH] docs: add missing `auto_upgrade` setting --- themes/schema.json | 6 ++++++ website/docs/configuration/general.mdx | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/themes/schema.json b/themes/schema.json index 6cf9ab47..1d062d44 100644 --- a/themes/schema.json +++ b/themes/schema.json @@ -4676,6 +4676,12 @@ "description": "https://ohmyposh.dev/docs/configuration/title#general-settings", "default": false }, + "auto_upgrade": { + "type": "boolean", + "title": "Enable automatic upgrades for Oh My Posh (supports Windows/macOS only)", + "description": "https://ohmyposh.dev/docs/configuration/title#general-settings", + "default": false + }, "patch_pwsh_bleed": { "type": "boolean", "title": "Patch PowerShell Color Bleed", diff --git a/website/docs/configuration/general.mdx b/website/docs/configuration/general.mdx index 640a4375..c3a9b6b9 100644 --- a/website/docs/configuration/general.mdx +++ b/website/docs/configuration/general.mdx @@ -137,6 +137,7 @@ For example, the following is a valid `--config` flag: | `disable_cursor_positioning` | `boolean` | disable fetching the cursor position in bash and zsh in case of unwanted side-effects | | `patch_pwsh_bleed` | `boolean` | patch a PowerShell bug where the background colors bleed into the next line at the end of the buffer (can be removed when [this][pwsh-bleed] is merged) | | `disable_notice` | `boolean` | disable the upgrade notice | +| `auto_upgrade` | `boolean` | enable automatic upgrades for Oh My Posh (supports Windows/macOS only) | | `iterm_features` | `[]string` | enable iTerm2 specific features: | ### JSON Schema Validation @@ -160,7 +161,7 @@ For example, given the following code: ``` Warnings will be raised for type, since `an_invalid_entry` is not in the list of acceptable values, as well as -for the entire segment item (enclosed in {}), since it lacks the required `style` key. Take advantage of these +for the entire segment item (enclosed in `{}`), since it lacks the required `style` key. Take advantage of these warnings, and ignore them at your peril. ### Accepted Formats