This commit is contained in:
2026-01-27 11:38:01 +08:00
parent db8ec50581
commit 87a837fdf5

View File

@@ -2,14 +2,16 @@ format = """
$os\ $os\
$username\ $username\
$hostname\ $hostname\
$shell\
$directory\ $directory\
$git_branch\ $git_branch\
$git_status\ $git_status\
$c\ $c\
$cpp\
$rust\ $rust\
$golang\ $golang\
$nodejs\ $nodejs\
$java\ $scala\
$haskell\ $haskell\
$python\ $python\
$time\ $time\
@@ -17,9 +19,23 @@ $cmd_duration\
$line_break\ $line_break\
$character""" $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] [os]
disabled = false disabled = false
style = "fg:#808080" style = "fg:color_os"
format = '[$symbol]($style)' format = '[$symbol]($style)'
[os.symbols] [os.symbols]
@@ -71,24 +87,32 @@ Windows = "󰍲 "
[username] [username]
show_always = true show_always = true
style_user = "fg:#4ca47b" style_user = "fg:color_username"
style_root = "fg:#c2295b" style_root = "fg:color_rootname"
format = '[$user]($style)' format = '[$user]($style)'
[hostname] [hostname]
style = "fg:#4ca47b" style = "fg:color_hostname"
ssh_only = true ssh_only = true
# ssh_symbol = " " # ssh_symbol = " "
# ssh_symbol = "" # ssh_symbol = ""
# ssh_symbol = "" # ssh_symbol = ""
ssh_symbol = " 󰬚󰬚󰬏" ssh_symbol = " 󰬚󰬚󰬏"
format = '[@$hostname]($style)[ $ssh_symbol ](fg:#d65d0e)' format = '[@$hostname]($style)[ $ssh_symbol ](fg:color_hostname_ssh)'
aliases = { "DESKTOP-GD7R6G4" = "Main", "DESKTOP-NDHG1UL" = "LabPC" } 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] [directory]
read_only = " 󰌾" read_only = " 󰌾"
# style = "bold fg:#534178" # style = "bold fg:#534178"
style = "bold fg:#9d8fbe" style = "bold fg:color_directory"
format = "[ $path ]($style)" format = "[ $path ]($style)"
truncation_length = 4 truncation_length = 4
truncation_symbol = "…/" truncation_symbol = "…/"
@@ -102,7 +126,7 @@ truncation_symbol = "…/"
[git_branch] [git_branch]
symbol = " " symbol = " "
style = "fg:#4ca47b" style = "fg:color_gitbranch"
[git_status] [git_status]
# style = "fg:#4ca47b" # style = "fg:#4ca47b"
@@ -114,16 +138,16 @@ tag_symbol = '  '
[time] [time]
disabled = false disabled = false
style = "fg:#b42871" style = "fg:color_time"
time_format = "%R" time_format = "%R"
format = '[[  $time ](fg:#b42871)]($style)' format = '[  $time ]($style)'
[cmd_duration] [cmd_duration]
disabled = false disabled = false
min_time = 0 min_time = 0
show_milliseconds = true show_milliseconds = true
style = "fg:#b42871" style = "fg:color_cmdduration"
format = '[[ 󱫑 $duration ](fg:#b42871)]($style)' format = '[ 󱫑 $duration ]($style)'
[line_break] [line_break]
disabled = false disabled = false
@@ -161,7 +185,6 @@ symbol = " "
[deno] [deno]
symbol = " " symbol = " "
[docker_context] [docker_context]
symbol = " " symbol = " "
@@ -242,6 +265,7 @@ symbol = " "
symbol = "󰏗 " symbol = "󰏗 "
[python] [python]
style = "bold fg:#4685b7"
symbol = " " symbol = " "
[rlang] [rlang]
@@ -251,9 +275,11 @@ symbol = "󰟔 "
symbol = " " symbol = " "
[rust] [rust]
style = "bold fg:#000000"
symbol = "󱘗 " symbol = "󱘗 "
[scala] [scala]
style = "fg:#dc322f"
symbol = " " symbol = " "
[swift] [swift]