From e5ab472460c9d08aaf806b4842e451d8a2f16882 Mon Sep 17 00:00:00 2001 From: long-910 <7323488+long-910@users.noreply.github.com> Date: Sun, 1 Mar 2026 20:58:13 +0900 Subject: [PATCH 1/2] Feat: Kali Linux style starship prompt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Show username/hostname always (not SSH-only) - Replace ❯ character with $ (# for root) to match Kali style - Remove redundant $username/$hostname at start of format line - Update hostname format to [$hostname] (removed redundant @ prefix) Result: ┌──(user@host)─[dir git]\n└─$ Co-Authored-By: Claude Sonnet 4.6 --- config/starship.toml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/config/starship.toml b/config/starship.toml index 6d6bc3d..2889835 100644 --- a/config/starship.toml +++ b/config/starship.toml @@ -1,9 +1,7 @@ # config/starship.toml — Starship prompt configuration -# Two-line prompt matching existing .zshrc style +# Kali Linux style: ┌──(user@host)-[dir git]\n└─$ format = """ -$username\ -$hostname\ [┌──\\(](bold green)$username[@](bold green)$hostname[\\)─\\[](bold green)$directory[$git_branch$git_status](bold green)[\\]](bold green)\n\ $git_state\ $nodejs$python$rust$golang\ @@ -11,10 +9,10 @@ $cmd_duration\ $line_break\ [└─](bold green)$character""" -# Prompt character +# Prompt character — $ for user, # for root (Kali style) [character] -success_symbol = "[❯](bold blue)" -error_symbol = "[❯](bold red)" +success_symbol = "[\\$](bold blue)" +error_symbol = "[\\$](bold red)" vimcmd_symbol = "[❮](bold green)" # Directory @@ -24,16 +22,17 @@ truncation_length = 4 truncate_to_repo = true format = "[$path]($style)[$read_only]($read_only_style)" -# Username — show only in SSH sessions +# Username — always visible (Kali style) [username] -show_always = false +show_always = true format = "[$user]($style)" style_user = "bold blue" +style_root = "bold red" -# Hostname — show only in SSH sessions +# Hostname — always visible (Kali style) [hostname] -ssh_only = true -format = "[@$hostname]($style)" +ssh_only = false +format = "[$hostname]($style)" style = "bold blue" # Git branch From 6b237e2b247122ae48b8951c230c695e20b65673 Mon Sep 17 00:00:00 2001 From: long-910 <7323488+long-910@users.noreply.github.com> Date: Sun, 1 Mar 2026 21:00:32 +0900 Subject: [PATCH 2/2] Fix: remove blank line between prompt lines $line_break added an extra newline on top of the \n already in the format string, causing an empty line between the two prompt lines. Co-Authored-By: Claude Sonnet 4.6 --- config/starship.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/config/starship.toml b/config/starship.toml index 2889835..1e6857a 100644 --- a/config/starship.toml +++ b/config/starship.toml @@ -6,7 +6,6 @@ format = """ $git_state\ $nodejs$python$rust$golang\ $cmd_duration\ -$line_break\ [└─](bold green)$character""" # Prompt character — $ for user, # for root (Kali style)