From fb0b9044eb175403328944ad8f2e13605f64e0c9 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Thu, 8 Feb 2024 23:05:09 +0200 Subject: [PATCH] chore(shell): tweak git segment in ohmyposh config --- config/oh-my-posh.omp.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/oh-my-posh.omp.json b/config/oh-my-posh.omp.json index 8f2d33a..a665ebc 100644 --- a/config/oh-my-posh.omp.json +++ b/config/oh-my-posh.omp.json @@ -34,7 +34,7 @@ "type": "git", "style": "plain", "foreground": "lightGreen", - "template": "{{ .UpstreamIcon }}({{if .Behind }}\u2193 {{ .Behind }} {{ end }}{{if .Staging.Changed }}\uF046 {{ .Staging.String }} {{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }}| {{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }})", + "template": "{{ .UpstreamIcon }}{{ if or (.Staging.Changed) (.Working.Changed) }}({{if .Behind }}\u2193 {{ .Behind }} {{ end }}{{if .Staging.Changed }}\uF046 {{ .Staging.String }} {{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }}| {{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}){{ end }}", "properties": { "fetch_status": true, "fetch_upstream_icon": true,