Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next #5861

Merged
merged 2 commits into from
Nov 8, 2024
Merged

next #5861

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/config/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ func (segment *Segment) migrate(version int) {
return
}

if segment.Properties == nil {
segment.Properties = properties.Map{}
}

// Cache settings, the default is now 24h so we have to respect this being disabled previously
if !segment.Properties.GetBool("cache_version", false) {
segment.Properties[properties.CacheDuration] = cache.NONE
Expand Down
2 changes: 1 addition & 1 deletion themes/devious-diamonds.omp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -265,4 +265,4 @@ palette:
white: "#FFFFFF"
white-cursorColor-foreground: "#F8F8F2"
yellow: "#FFCA80"
version: 2
version: 3
2 changes: 1 addition & 1 deletion themes/glowsticks.omp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,4 @@ transient_prompt:
background: transparent
foreground: p:white
template: " "
version: 2
version: 3
2 changes: 1 addition & 1 deletion website/docs/configuration/example.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ import Config from "@site/src/components/Config.js";
},
],
final_space: true,
version: 2,
version: 3,
}}
/>
4 changes: 2 additions & 2 deletions website/docs/configuration/general.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ starting point to create your own configuration.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"version": 2,
"version": 3,
"blocks": [
{
"type": "prompt",
Expand Down Expand Up @@ -59,7 +59,7 @@ starting point to create your own configuration.
```yaml
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
final_space: true
version: 2
version: 3
blocks:
- type: prompt
alignment: left
Expand Down
2 changes: 1 addition & 1 deletion website/docs/configuration/templates.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ $env.SET_POSHCONTEXT = {

<Config
data={{
version: 2,
version: 3,
// highlight-start
var: {
Hello: "hello",
Expand Down