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