Browse Source

oh-my-posh: tweak git template

raylu 7 months ago
parent
commit
2e6215e266
1 changed files with 3 additions and 1 deletions
  1. 3 1
      config/oh-my-posh.toml

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

@@ -43,16 +43,18 @@ final_space = true
 
 
   [[blocks.segments]]
   [[blocks.segments]]
     type = 'git'
     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'
     foreground = '#efdcf9'
     background = '#341948'
     background = '#341948'
     style = 'powerline'
     style = 'powerline'
     powerline_symbol = ''
     powerline_symbol = ''
     [blocks.segments.properties]
     [blocks.segments.properties]
+      branch_icon = ''
       branch_template = '{{ trunc 25 .Branch }}'
       branch_template = '{{ trunc 25 .Branch }}'
       fetch_stash_count = true
       fetch_stash_count = true
       fetch_status = true
       fetch_status = true
       fetch_upstream_icon = true
       fetch_upstream_icon = true
+      untracked_modes = {'*' = 'no'}
 
 
   [[blocks.segments]]
   [[blocks.segments]]
     type = 'time'
     type = 'time'