1
0
Эх сурвалжийг харах

oh-my-posh: terraform workspace

also make git/jj darker to make room in color space for terraform
raylu 2 сар өмнө
parent
commit
eb6931a991
1 өөрчлөгдсөн 11 нэмэгдсэн , 3 устгасан
  1. 11 3
      config/oh-my-posh.toml

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

@@ -36,7 +36,7 @@ final_space = true
     type = 'git'
     template = '{{ if not .Segments.Jujutsu.Enabled }} {{ 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 }} {{ end }}'
     foreground = '#efdcf9'
-    background = '#341948'
+    background = '#2c1048'
     style = 'powerline'
     powerline_symbol = ''
     [blocks.segments.properties]
@@ -49,14 +49,22 @@ final_space = true
 
   [[blocks.segments]]
     type = 'jujutsu'
-    template = ' 󱗆 {{.ChangeID}}{{if .Working.Changed}}  {{ .Working.String }}{{ end }} '
+    template = ' 󱗆 {{ .ChangeID }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }} '
     foreground = '#efdcf9'
-    background = '#341948'
+    background = '#2c1048'
     style = 'powerline'
     powerline_symbol = ''
     [blocks.segments.properties]
       fetch_status = true
 
+  [[blocks.segments]]
+    type = 'terraform'
+    template = '  {{ .WorkspaceName }} '
+    foreground = '#efdcf9'
+    background = '#3a1c50'
+    style = 'powerline'
+    powerline_symbol = ''
+
   [[blocks.segments]]
     type = 'time'
     template = ' {{ .CurrentDate | date .Format }} '