diff --git a/docs/docs/installation.mdx b/docs/docs/installation.mdx index 45adf4a3..bec31be9 100644 --- a/docs/docs/installation.mdx +++ b/docs/docs/installation.mdx @@ -329,21 +329,6 @@ and store it somehwere. Once adjusted to your liking, [change the prompt setting oh-my-posh --config ~/.mytheme.omp.json ``` -#### JSON Schema - -There's an easy to use [JSON schema][schema] available to validate your theme and have auto completion when editing. -When using [Visual Studio Code][vscode], you can extend your settings file (F1 -> Preferences: Open Settings (JSON)) -by adding the following lines: - -```json -"json.schemas": [ - { - "fileMatch": ["*.omp.json"], - "url": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json" - } -] -``` - 🎉🎉🎉 [wt]: https://github.com/microsoft/terminal @@ -358,5 +343,3 @@ by adding the following lines: [brew]: /docs/homebrew [prompt]: /docs/installation#4-replace-your-existing-prompt [configuration]: /docs/configure -[schema]: https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json -[vscode]: https://code.visualstudio.com/ diff --git a/themes/agnoster.omp.json b/themes/agnoster.omp.json index 6db5fb1b..2636a978 100644 --- a/themes/agnoster.omp.json +++ b/themes/agnoster.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt", diff --git a/themes/agnosterplus.omp.json b/themes/agnosterplus.omp.json index e59a5363..df4cfa5e 100644 --- a/themes/agnosterplus.omp.json +++ b/themes/agnosterplus.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt", diff --git a/themes/aliens.omp.json b/themes/aliens.omp.json index 0350edbb..f842fae8 100644 --- a/themes/aliens.omp.json +++ b/themes/aliens.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt", diff --git a/themes/avit.omp.json b/themes/avit.omp.json index ced7b911..678a772c 100644 --- a/themes/avit.omp.json +++ b/themes/avit.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt", diff --git a/themes/darkblood.omp.json b/themes/darkblood.omp.json index b3b6421e..a5992cf3 100644 --- a/themes/darkblood.omp.json +++ b/themes/darkblood.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt", diff --git a/themes/emodipt.omp.json b/themes/emodipt.omp.json index 645e5abc..f7ba4eaa 100644 --- a/themes/emodipt.omp.json +++ b/themes/emodipt.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt", diff --git a/themes/fish.omp.json b/themes/fish.omp.json index 4ccd8d81..02d6fd4d 100644 --- a/themes/fish.omp.json +++ b/themes/fish.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt", diff --git a/themes/honukai.omp.json b/themes/honukai.omp.json index 911c9a9b..958e908c 100644 --- a/themes/honukai.omp.json +++ b/themes/honukai.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt", diff --git a/themes/jandedobbeleer.omp.json b/themes/jandedobbeleer.omp.json index 601627c4..dcd47c2e 100644 --- a/themes/jandedobbeleer.omp.json +++ b/themes/jandedobbeleer.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt", diff --git a/themes/lambda.omp.json b/themes/lambda.omp.json index 72ec8c9a..6008fae7 100644 --- a/themes/lambda.omp.json +++ b/themes/lambda.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt", diff --git a/themes/material.omp.json b/themes/material.omp.json index 7caf94c4..fef3f8b7 100644 --- a/themes/material.omp.json +++ b/themes/material.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt", diff --git a/themes/paradox.omp.json b/themes/paradox.omp.json index 8e7840c2..2618cc82 100644 --- a/themes/paradox.omp.json +++ b/themes/paradox.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt", diff --git a/themes/pararussel.omp.json b/themes/pararussel.omp.json index 171ae16a..aa8f3cb3 100644 --- a/themes/pararussel.omp.json +++ b/themes/pararussel.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt", diff --git a/themes/powerlevel10k_classic.omp.json b/themes/powerlevel10k_classic.omp.json index 710f8ffb..067c1b7f 100644 --- a/themes/powerlevel10k_classic.omp.json +++ b/themes/powerlevel10k_classic.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt", diff --git a/themes/powerlevel10k_lean.omp.json b/themes/powerlevel10k_lean.omp.json index b4a8c85a..b3f374e3 100644 --- a/themes/powerlevel10k_lean.omp.json +++ b/themes/powerlevel10k_lean.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt", diff --git a/themes/powerline.omp.json b/themes/powerline.omp.json index 916f9278..bd49d1b4 100644 --- a/themes/powerline.omp.json +++ b/themes/powerline.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt", diff --git a/themes/robbyrussel.omp.json b/themes/robbyrussel.omp.json index 997026ab..f05bfd5b 100644 --- a/themes/robbyrussel.omp.json +++ b/themes/robbyrussel.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt", diff --git a/themes/sorin.omp.json b/themes/sorin.omp.json index bef8259d..96ae9123 100644 --- a/themes/sorin.omp.json +++ b/themes/sorin.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt", diff --git a/themes/star.omp.json b/themes/star.omp.json index 300443c6..938d9951 100644 --- a/themes/star.omp.json +++ b/themes/star.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt", diff --git a/themes/zash.omp.json b/themes/zash.omp.json index cb8948ac..c191d7e9 100644 --- a/themes/zash.omp.json +++ b/themes/zash.omp.json @@ -1,4 +1,5 @@ { + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh3/main/themes/schema.json", "blocks": [ { "type": "prompt",