docs: add missing version parameter

This commit is contained in:
Jan De Dobbeleer 2022-11-09 07:56:23 +01:00 committed by Jan De Dobbeleer
parent c0c230879a
commit 3f83944dc3

View file

@ -31,6 +31,7 @@ starting point to create your own configuration.
{ {
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true, "final_space": true,
"version": 2,
"blocks": [ "blocks": [
{ {
"type": "prompt", "type": "prompt",
@ -58,6 +59,7 @@ starting point to create your own configuration.
```yaml ```yaml
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json # yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
final_space: true final_space: true
version: 2
blocks: blocks:
- type: prompt - type: prompt
alignment: left alignment: left
@ -77,6 +79,7 @@ blocks:
```toml ```toml
"$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json" "$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json"
final_space = true final_space = true
version = 2
[[blocks]] [[blocks]]
type = "prompt" type = "prompt"