From dfbe7a50b2b11caab26b89cad33220e1652037e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20B=C3=BCchler?= Date: Thu, 7 Aug 2025 23:48:27 +0200 Subject: [PATCH] style: refine Starship powerline prompt, remove initial separator, improve tmux color matching --- .config/starship.toml | 55 ++++++++++++++++++++++++++----------------- 1 file changed, 33 insertions(+), 22 deletions(-) diff --git a/.config/starship.toml b/.config/starship.toml index 821b9ef..bb67e3a 100644 --- a/.config/starship.toml +++ b/.config/starship.toml @@ -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)"