From f111d4a0542c7460f0859428b470827e6818d342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20B=C3=BCchler?= Date: Fri, 8 Aug 2025 00:25:17 +0200 Subject: [PATCH] chore(starship): update prompt layout and colors for optimal status/duration display MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Status and info left-aligned on first line - Command duration right-aligned on last line - Remove clock, ensure powerline style matches tmux 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode --- .config/starship.toml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.config/starship.toml b/.config/starship.toml index bb67e3a..5f99c9f 100644 --- a/.config/starship.toml +++ b/.config/starship.toml @@ -1,7 +1,16 @@ # Starship Powerline-style prompt, matching tmux colors # Requires Nerd Font for separators -format = "\n$directory$git_branch$git_status$time\n$character" +format = "$status$username$hostname$directory$git_branch$git_status\n$character" +right_format = "$cmd_duration" + +[username] +show_always = false +style_user = "bg:#303030 fg:#eaeaea bold" + +[hostname] +ssh_only = true +style = "bg:#303030 fg:#eaeaea bold" [directory] style = "bg:#303030 fg:#eaeaea" @@ -22,11 +31,18 @@ style = "bg:#ff8700 fg:#1c1c1c" format = "[$all_status](bg:#ff8700 fg:#1c1c1c bold)[](fg:#ff8700 bg:#303030)" disabled = false -[time] +[status] disabled = false -style = "bg:#303030 fg:#00afff" -format = "[$time](bg:#303030 fg:#00afff bold)" -time_format = "%H:%M" +format = "[$symbol$status](bg:#ff8700 fg:#1c1c1c bold)\n" +symbol = "✗ " +signal_symbol = "⚡ " +success_symbol = "" +not_executable_symbol = "" + +[cmd_duration] +min_time = 0 +format = "[$duration](fg:#00afff bg:#303030 bold)" +show_milliseconds = true [character] success_symbol = "[❯](bold blue)"