From 45654783a07d4f53e6d0ab843315a647edd91295 Mon Sep 17 00:00:00 2001 From: Heavy Date: Sun, 3 Nov 2024 21:07:52 +0100 Subject: [PATCH] (starship): adjust some styles, switched to template. --- .../{starship.toml => starship.toml.tmpl} | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) rename private_dot_config/{starship.toml => starship.toml.tmpl} (80%) diff --git a/private_dot_config/starship.toml b/private_dot_config/starship.toml.tmpl similarity index 80% rename from private_dot_config/starship.toml rename to private_dot_config/starship.toml.tmpl index 19e3faf..a5f5e55 100644 --- a/private_dot_config/starship.toml +++ b/private_dot_config/starship.toml.tmpl @@ -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"