feat(starship): Improve configuration for starship.rs prompt for zsh

This commit is contained in:
2026-08-19 21:34:11 +02:00
parent e57f78c957
commit 5d7933ac5a
+30 -19
View File
@@ -6,23 +6,22 @@ $directory\
$git_branch\ $git_branch\
$git_commit\ $git_commit\
$git_status\ $git_status\
$git_state\
$direnv\ $direnv\
$mise\ $mise\
[](fg:#394260 bg:#212736)\ [](fg:#394260 bg:#212736)\
$golang\
$rust\ $rust\
$golang\
$python\ $python\
$nodejs\ $nodejs\
$docker_context\ $docker_context\
$kubernetes\ $kubernetes\
$terraform\ $terraform\
[](fg:#212736)\ [](fg:#212736)\
$character""" \n$character\
"""
right_format = """ right_format = """
[](fg:#a3aed2)\
$time\
[ ](fg:#a3aed2)\
[](fg:#a3aed2)\ [](fg:#a3aed2)\
$shell\ $shell\
$username\ $username\
@@ -30,7 +29,12 @@ $username\
$os\ $os\
[](bg:#394260 fg:#a3aed2)\ [](bg:#394260 fg:#a3aed2)\
$container\ $container\
$hostname""" $hostname\
[ ](fg:#394260)\
[](fg:#a3aed2)\
$time\
[](fg:#a3aed2)\
"""
[hostname] [hostname]
disabled = false disabled = false
@@ -85,27 +89,32 @@ format = '[ $symbol $branch ]($style)'
[git_commit] [git_commit]
disabled = false disabled = false
style = "fg:#769ff0 bg:#394260"
tag_disabled = false tag_disabled = false
tag_symbol = '  ' tag_symbol = '  '
only_detached = true only_detached = true
style = "fg:#769ff0 bg:#394260"
format = '[ $hash $tag ]($style)' format = '[ $hash $tag ]($style)'
[git_status] [git_status]
disabled = false disabled = false
style = "fg:#769ff0 bg:#394260" style = "fg:#769ff0 bg:#394260"
format = '[$all_status$ahead_behind]($style)'
ahead = '⇡${count}' ahead = '⇡${count}'
behind = '⇣${count}' behind = '⇣${count}'
diverged = '[⇕⇡${ahead_count}⇣${behind_count}](fg:#FFA500 bg:#394260)' diverged = '[⇕⇡${ahead_count}⇣${behind_count}](fg:#FFA500 bg:#394260)'
up_to_date = '' up_to_date = ''
modified = '[$count󰷉 ](fg:#FFFF00 bg:#394260)' modified = '[$count 󰷉 ](fg:#FFFF00 bg:#394260)'
staged = '[$count ](fg:#00D000 bg:#394260)' staged = '[$count  ](fg:#00D000 bg:#394260)'
deleted = '[$count ](fg:#FF0000 bg:#394260)' deleted = '[$count  ](fg:#FF0000 bg:#394260)'
renamed = '[$count󱀱 ](fg:#87CEEB bg:#394260)' renamed = '[$count 󱀱 ](fg:#87CEEB bg:#394260)'
untracked = '[$count󱀶 ](fg:#CCCCCC bg:#394260)' untracked = '[$count 󱀶 ](fg:#CCCCCC bg:#394260)'
conflicted = '[$count󱪘 ](fg:#FF0000 bg:#394260)' conflicted = '[$count 󱪘 ](fg:#FF0000 bg:#394260)'
stashed = '[$count](fg:#FFA500 bg:#394260)' # 󱁺  stashed = '[$count ](fg:#FFA500 bg:#394260)' # 󱁺 
format = '[$all_status$ahead_behind ]($style)'
[git_state]
disabled = false
style = "fg:#769ff0 bg:#394260"
format = ' [$state( $progress_current/$progress_total)]($style) '
[direnv] [direnv]
disabled = false disabled = false
@@ -164,14 +173,16 @@ format = '[[](fg:#212736 bg:#1b1028) [$symbol](fg:#7b42bc bg:#1b1028) $worksp
[time] [time]
disabled = false disabled = false
time_format = "%R" # Hour:Minute Format style = "fg:#212736 bg:#a3aed2"
style = "fg:#ffffff bg:#a3aed2"
format = '[  $time ]($style)' format = '[  $time ]($style)'
time_format = '%T  󰃶 %A %e %B %Y'
# format = '[[  $time ](fg:#a0a9cb bg:#1d2230)]($style)' # format = '[[  $time ](fg:#a0a9cb bg:#1d2230)]($style)'
[character] [character]
success_symbol = '[[](fg:#ddffdd)  [](fg:#ddffdd)](bg:#ddffdd fg:#00af5f) ' # success_symbol = '[[](fg:#ddffdd)  [](fg:#ddffdd)](bg:#ddffdd fg:#00af5f) '
error_symbol = '[[](fg:#ffddff) 󰚽 [](fg:#ffddff)](bg:#ffddff fg:#f44336) ' # error_symbol = '[[](fg:#ffddff) 󰚽 [](fg:#ffddff)](bg:#ffddff fg:#f44336) '
success_symbol = '[  [](fg:#ddffdd)](bg:#ddffdd fg:#00af5f) '
error_symbol = '[ 󰚽 [](fg:#ffddff)](bg:#ffddff fg:#f44336) '
[os.symbols] [os.symbols]
Windows = "󰍲" Windows = "󰍲"