(starship): adjust some styles, switched to template.

This commit is contained in:
Heavy 2024-11-03 21:07:52 +01:00
parent 65781dc73f
commit 45654783a0

View File

@ -10,6 +10,7 @@ $git_status\
$nodejs\ $nodejs\
$rust\ $rust\
$golang\ $golang\
$gradle\
$php\ $php\
$java\ $java\
[](fg:#212736 bg:#1d2230)\ [](fg:#212736 bg:#1d2230)\
@ -34,7 +35,7 @@ disabled = false
style = "bg:#a3aed2 fg:#090c0c" style = "bg:#a3aed2 fg:#090c0c"
[directory] [directory]
style = "fg:#e3e5e5 bg:#769ff0" style = "fg:#090c0c bg:#769ff0"
format = "[ $path ]($style)" format = "[ $path ]($style)"
truncation_length = 3 truncation_length = 3
truncation_symbol = "…/" truncation_symbol = "…/"
@ -62,6 +63,7 @@ format = '[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)'
[rust] [rust]
symbol = "" symbol = ""
style = "bg:#212736" style = "bg:#212736"
format = '[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)'
[golang] [golang]
symbol = "" symbol = ""
@ -81,10 +83,18 @@ format = '[[  $time ](fg:#a0a9cb bg:#1d2230)]($style)'
[java] [java]
style = "bg:#212736" style = "bg:#212736"
format = '[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)' format = '[[ $symbol($version)](fg:#769ff0 bg:#212736)]($style)'
[gradle]
style = "fg:#769ff0 bg:#212736"
format = '[[ $symbol($version)](fg:#769ff0 bg:#212736)]($style)'
[custom.os] [custom.os]
command = 'chezmoi data | jq -r .chezmoi.osRelease.prettyName' {{ if eq .chezmoi.os "linux" }}
when = 'command -v chezmoi' command = 'echo {{ .chezmoi.osRelease.prettyName }}'
{{ else if eq .chezmoi.os "windows" }}
command = 'echo {{ .chezmoi.windowsVersion.productName }}'
{{ end }}
when = true
format = "[$output]($style)" format = "[$output]($style)"
style = "bg:#a3aed2 fg:#090c0c" style = "bg:#a3aed2 fg:#090c0c"