Răsfoiți Sursa

oh-my-posh: tweak git template

raylu 7 luni în urmă
părinte
comite
2e6215e266
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      config/oh-my-posh.toml

+ 3 - 1
config/oh-my-posh.toml

@@ -43,16 +43,18 @@ final_space = true
 
   [[blocks.segments]]
     type = 'git'
-    template = ' {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }} '
+    template = ' {{ url .UpstreamIcon .UpstreamURL }} {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }} '
     foreground = '#efdcf9'
     background = '#341948'
     style = 'powerline'
     powerline_symbol = ''
     [blocks.segments.properties]
+      branch_icon = ''
       branch_template = '{{ trunc 25 .Branch }}'
       fetch_stash_count = true
       fetch_status = true
       fetch_upstream_icon = true
+      untracked_modes = {'*' = 'no'}
 
   [[blocks.segments]]
     type = 'time'