Sfoglia il codice sorgente

oh-my-posh: brighter when SSH

raylu 8 mesi fa
parent
commit
d920911c73
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 4 3
      config/oh-my-posh.toml

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

@@ -20,10 +20,11 @@ final_space = true
     style = 'diamond'
 
   [[blocks.segments]]
-    template = '{{ if .SSHSession }} {{ end }}{{ if .Root }}root {{ end }}{{ .HostName }}'
+    template = ' {{ if .SSHSession }} {{ .HostName }}{{ end }}{{ if .Root }} root{{ end }}'
     foreground = '#efdcf9'
-    foreground_templates = ['{{ if .Root }}#ff3c3c{{ end }}']
+    foreground_templates = ['{{ if .Root }}#ff3c3c{{ end }}', '{{ if .SSHSession }}#0e050f{{ end }}']
     background = '#0e050f'
+    background_templates = ['{{ if and (not .Root) .SSHSession }}#a060e3{{ end }}']
     type = 'session'
     style = 'diamond'
 
@@ -36,7 +37,7 @@ final_space = true
     powerline_symbol = ''
     [blocks.segments.properties]
       style = 'mixed'
-	  mixed_threshold = 16
+      mixed_threshold = 16
       folder_icon = ''
       display_root = true