style: refine Starship powerline prompt, remove initial separator, improve tmux color matching

This commit is contained in:
Martin Büchler 2025-08-07 23:48:27 +02:00
parent a130015f85
commit dfbe7a50b2

View File

@ -1,10 +1,38 @@
# Starship prompt config — terminal only, no language segments
# See https://starship.rs/config/ for full options
# Starship Powerline-style prompt, matching tmux colors
# Requires Nerd Font for separators
# Basic prompt settings
format = "$all\n$character"
format = "\n$directory$git_branch$git_status$time\n$character"
# Remove all language-specific modules
[directory]
style = "bg:#303030 fg:#eaeaea"
read_only = " "
format = "[$path](bg:#303030 fg:#eaeaea bold)[](fg:#303030 bg:#0087ff)"
truncation_length = 4
truncation_symbol = "…/"
home_symbol = "~"
truncate_to_repo = false
[git_branch]
style = "bg:#0087ff fg:#1c1c1c"
symbol = " "
format = "[$symbol$branch](bg:#0087ff fg:#1c1c1c bold)[](fg:#0087ff bg:#ff8700)"
[git_status]
style = "bg:#ff8700 fg:#1c1c1c"
format = "[$all_status](bg:#ff8700 fg:#1c1c1c bold)[](fg:#ff8700 bg:#303030)"
disabled = false
[time]
disabled = false
style = "bg:#303030 fg:#00afff"
format = "[$time](bg:#303030 fg:#00afff bold)"
time_format = "%H:%M"
[character]
success_symbol = "[](bold blue)"
error_symbol = "[](bold orange)"
# Hide language segments
[aws]
disabled = true
[cmake]
@ -59,20 +87,3 @@ disabled = true
disabled = true
[zig]
disabled = true
# Only show basic terminal info
[username]
disabled = false
[hostname]
disabled = false
[directory]
disabled = false
[git_branch]
disabled = false
[git_status]
disabled = false
# Character prompt
[character]
success_symbol = "[](bold green)"
error_symbol = "[](bold red)"