From a994b9082a529e3ae4a694eb114994403aa19cf3 Mon Sep 17 00:00:00 2001 From: 0xrsydn Date: Wed, 1 Oct 2025 11:38:43 +0700 Subject: [PATCH] fix: modify shell prompt --- modules/home/rsydn/shell/oh-my-posh/capr4n.omp.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/home/rsydn/shell/oh-my-posh/capr4n.omp.json b/modules/home/rsydn/shell/oh-my-posh/capr4n.omp.json index b8fdd0e..a86b29c 100644 --- a/modules/home/rsydn/shell/oh-my-posh/capr4n.omp.json +++ b/modules/home/rsydn/shell/oh-my-posh/capr4n.omp.json @@ -56,8 +56,11 @@ "background": "#95ffa4", "foreground": "#193549", "powerline_symbol": "\ue0b0", + "properties": { + "fetch_status": true + }, "style": "powerline", - "template": " {{ .HEAD }} ", + "template": " {{ .HEAD }}{{ if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{- $staged := add .Staging.Added (add .Staging.Modified (add .Staging.Deleted .Staging.Unmerged)) -}}{{ if gt $staged 0 }} ^{{$staged}}{{ end }}{{ if gt .Working.Modified 0 }} ~{{ .Working.Modified }}{{ end }}{{ if gt .Working.Deleted 0 }} -{{ .Working.Deleted }}{{ end }}{{ if gt .Working.Untracked 0 }} +{{ .Working.Untracked }}{{ end }} ", "type": "git" } ],