From 71349611abdca6a765fb4654cdbeac9286480200 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Wed, 8 Apr 2026 09:49:21 +0800 Subject: [PATCH] =?UTF-8?q?feat(zsh):=20=E6=9B=B4=E6=96=B0=20Starship=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E9=87=87=E7=94=A8=20powerline=20?= =?UTF-8?q?=E9=A3=8E=E6=A0=BC=E4=B8=BB=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/.config/starship.toml | 71 ++++++++++++++++++++++++++------------ 1 file changed, 48 insertions(+), 23 deletions(-) diff --git a/home/.config/starship.toml b/home/.config/starship.toml index 48c1a5e..34116d9 100644 --- a/home/.config/starship.toml +++ b/home/.config/starship.toml @@ -1,41 +1,66 @@ +"$schema" = 'https://starship.rs/config-schema.json' + format = """ -$username\ -$hostname\ +[░▒▓](#a3aed2)\ +[  ](bg:#a3aed2 fg:#090c0c)\ +[](bg:#769ff0 fg:#a3aed2)\ $directory\ +[](fg:#769ff0 bg:#394260)\ $git_branch\ $git_status\ +[](fg:#394260 bg:#212736)\ $nodejs\ -$python\ -$go\ $rust\ -$cmd_duration\ -$line_break\ -$character""" - -[character] -success_symbol = "[❯](bold green)" -error_symbol = "[❯](bold red)" +$golang\ +$php\ +[](fg:#212736 bg:#1d2230)\ +$time\ +[ ](fg:#1d2230)\ +\n$character""" [directory] +style = "fg:#e3e5e5 bg:#769ff0" +format = "[ $path ]($style)" truncation_length = 3 truncation_symbol = "…/" +[directory.substitutions] +"Documents" = "󰈙 " +"Downloads" = " " +"Music" = " " +"Pictures" = " " + [git_branch] -symbol = " " +symbol = "" +style = "bg:#394260" +format = '[[ $symbol $branch ](fg:#769ff0 bg:#394260)]($style)' [git_status] -format = '([\[$all_status$ahead_behind\]]($style) )' - -[cmd_duration] -min_time = 2000 -format = "[$duration]($style) " +style = "bg:#394260" +format = '[[($all_status$ahead_behind )](fg:#769ff0 bg:#394260)]($style)' [nodejs] -format = "[$symbol($version)]($style) " -detect_extensions = [] +symbol = "" +style = "bg:#212736" +format = '[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)' -[python] -format = "[$symbol($version)]($style) " +[rust] +symbol = "" +style = "bg:#212736" +format = '[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)' -[go] -format = "[$symbol($version)]($style) " +[golang] +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)'