feat(zsh): 更新 Starship 配置,采用 powerline 风格主题

This commit is contained in:
2026-04-08 09:49:21 +08:00
parent 63975a334d
commit 71349611ab
+48 -23
View File
@@ -1,41 +1,66 @@
"$schema" = 'https://starship.rs/config-schema.json'
format = """ format = """
$username\ [░▒▓](#a3aed2)\
$hostname\ [  ](bg:#a3aed2 fg:#090c0c)\
[](bg:#769ff0 fg:#a3aed2)\
$directory\ $directory\
[](fg:#769ff0 bg:#394260)\
$git_branch\ $git_branch\
$git_status\ $git_status\
[](fg:#394260 bg:#212736)\
$nodejs\ $nodejs\
$python\
$go\
$rust\ $rust\
$cmd_duration\ $golang\
$line_break\ $php\
$character""" [](fg:#212736 bg:#1d2230)\
$time\
[character] [ ](fg:#1d2230)\
success_symbol = "[](bold green)" \n$character"""
error_symbol = "[](bold red)"
[directory] [directory]
style = "fg:#e3e5e5 bg:#769ff0"
format = "[ $path ]($style)"
truncation_length = 3 truncation_length = 3
truncation_symbol = "…/" truncation_symbol = "…/"
[directory.substitutions]
"Documents" = "󰈙 "
"Downloads" = " "
"Music" = " "
"Pictures" = " "
[git_branch] [git_branch]
symbol = " " symbol = ""
style = "bg:#394260"
format = '[[ $symbol $branch ](fg:#769ff0 bg:#394260)]($style)'
[git_status] [git_status]
format = '([\[$all_status$ahead_behind\]]($style) )' style = "bg:#394260"
format = '[[($all_status$ahead_behind )](fg:#769ff0 bg:#394260)]($style)'
[cmd_duration]
min_time = 2000
format = "[$duration]($style) "
[nodejs] [nodejs]
format = "[$symbol($version)]($style) " symbol = ""
detect_extensions = [] style = "bg:#212736"
format = '[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)'
[python] [rust]
format = "[$symbol($version)]($style) " symbol = ""
style = "bg:#212736"
format = '[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)'
[go] [golang]
format = "[$symbol($version)]($style) " symbol = ""
style = "bg:#212736"
format = '[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)'
[php]
symbol = ""
style = "bg:#212736"
format = '[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)'
[time]
disabled = false
time_format = "%R" # Hour:Minute Format
style = "bg:#1d2230"
format = '[[  $time ](fg:#a0a9cb bg:#1d2230)]($style)'