From 87a837fdf55db1f242a2ecd5bb48493e54a41b63 Mon Sep 17 00:00:00 2001 From: gwbeip Date: Tue, 27 Jan 2026 11:38:01 +0800 Subject: [PATCH] colors --- starship/starship_default.toml | 54 +++++++++++++++++++++++++--------- 1 file changed, 40 insertions(+), 14 deletions(-) diff --git a/starship/starship_default.toml b/starship/starship_default.toml index d9eb6d2..41cf034 100644 --- a/starship/starship_default.toml +++ b/starship/starship_default.toml @@ -2,14 +2,16 @@ format = """ $os\ $username\ $hostname\ +$shell\ $directory\ $git_branch\ $git_status\ $c\ +$cpp\ $rust\ $golang\ $nodejs\ -$java\ +$scala\ $haskell\ $python\ $time\ @@ -17,9 +19,23 @@ $cmd_duration\ $line_break\ $character""" +palette = 'terminal_polyjuice' + +[palettes.terminal_polyjuice] +color_os = '#6b6b6b' +color_username = '#4ca47b' +color_rootname = '#c2295b' +color_hostname = '#4ca47b' +color_hostname_ssh = '#d65d0e' +color_directory = '#9d8fbe' +color_gitbranch = '#4ca47b' +color_time = '#a6356f' +color_cmdduration = '#a6356f' +color_tools = '#306898' + [os] disabled = false -style = "fg:#808080" +style = "fg:color_os" format = '[$symbol]($style)' [os.symbols] @@ -71,24 +87,32 @@ Windows = "󰍲 " [username] show_always = true -style_user = "fg:#4ca47b" -style_root = "fg:#c2295b" +style_user = "fg:color_username" +style_root = "fg:color_rootname" format = '[$user]($style)' [hostname] -style = "fg:#4ca47b" +style = "fg:color_hostname" ssh_only = true # ssh_symbol = " " # ssh_symbol = "" # ssh_symbol = "" ssh_symbol = " 󰬚󰬚󰬏" -format = '[@$hostname]($style)[ $ssh_symbol ](fg:#d65d0e)' -aliases = { "DESKTOP-GD7R6G4" = "Main", "DESKTOP-NDHG1UL" = "LabPC" } +format = '[@$hostname]($style)[ $ssh_symbol ](fg:color_hostname_ssh)' +aliases = { "DESKTOP-GD7R6G4" = "HomePC", "DESKTOP-NDHG1UL" = "LabPC" } + +[shell] +disabled = false +fish_indicator = '󰈺 ' +powershell_indicator = '_' +unknown_indicator = 'mystery shell' +style = 'cyan bold' +format = '[ $indicator ]($style)' [directory] read_only = " 󰌾" # style = "bold fg:#534178" -style = "bold fg:#9d8fbe" +style = "bold fg:color_directory" format = "[ $path ]($style)" truncation_length = 4 truncation_symbol = "…/" @@ -102,7 +126,7 @@ truncation_symbol = "…/" [git_branch] symbol = " " -style = "fg:#4ca47b" +style = "fg:color_gitbranch" [git_status] # style = "fg:#4ca47b" @@ -114,16 +138,16 @@ tag_symbol = '  ' [time] disabled = false -style = "fg:#b42871" +style = "fg:color_time" time_format = "%R" -format = '[[  $time ](fg:#b42871)]($style)' +format = '[  $time ]($style)' [cmd_duration] disabled = false min_time = 0 show_milliseconds = true -style = "fg:#b42871" -format = '[[ 󱫑 $duration ](fg:#b42871)]($style)' +style = "fg:color_cmdduration" +format = '[ 󱫑 $duration ]($style)' [line_break] disabled = false @@ -161,7 +185,6 @@ symbol = " " [deno] symbol = " " - [docker_context] symbol = " " @@ -242,6 +265,7 @@ symbol = " " symbol = "󰏗 " [python] +style = "bold fg:#4685b7" symbol = " " [rlang] @@ -251,9 +275,11 @@ symbol = "󰟔 " symbol = " " [rust] +style = "bold fg:#000000" symbol = "󱘗 " [scala] +style = "fg:#dc322f" symbol = " " [swift]