From 99e7578d60c0306acd469541b626aec3d42d6e6a Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Thu, 29 Aug 2024 13:13:21 +0300 Subject: [PATCH] feat(config): oh-my-posh autoupgrade --- config/omp/own.json | 9 +++++++-- config/omp/own.toml | 1 + config/omp/zen.toml | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/config/omp/own.json b/config/omp/own.json index fe501d8..2089aff 100644 --- a/config/omp/own.json +++ b/config/omp/own.json @@ -2,6 +2,7 @@ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "final_space": true, "console_title_template": "{{.UserName}}@{{.HostName}} {{.Shell}} in {{.PWD}}", + "auto_upgrade": true, "blocks": [ { "alignment": "left", @@ -111,7 +112,9 @@ { "background": "transparent", "foreground": "lightGreen", - "foreground_templates": ["{{ if gt .Code 0 }}red{{ end }}"], + "foreground_templates": [ + "{{ if gt .Code 0 }}red{{ end }}" + ], "properties": { "always_enabled": true }, @@ -126,7 +129,9 @@ "transient_prompt": { "background": "transparent", "foreground": "lightGreen", - "foreground_templates": ["{{ if gt .Code 0 }}red{{ end }}"], + "foreground_templates": [ + "{{ if gt .Code 0 }}red{{ end }}" + ], "template": "\u279c " }, "version": 2 diff --git a/config/omp/own.toml b/config/omp/own.toml index c823f90..87982f2 100644 --- a/config/omp/own.toml +++ b/config/omp/own.toml @@ -2,6 +2,7 @@ final_space = true console_title_template = "{{.UserName}}@{{.HostName}} {{.Shell}} in {{.PWD}}" version = 2 +auto_upgrade = true [[blocks]] alignment = "left" diff --git a/config/omp/zen.toml b/config/omp/zen.toml index 7edb6f0..3161a40 100644 --- a/config/omp/zen.toml +++ b/config/omp/zen.toml @@ -3,6 +3,7 @@ version = 2 final_space = true console_title_template = '{{ .Shell }} in {{ .Folder }}' +auto_upgrade = true [[blocks]] type = 'prompt'