From 02de52e822b3e6968bd1fa6e9037376c316ceefd Mon Sep 17 00:00:00 2001 From: Max Rantil Date: Thu, 4 Dec 2025 08:00:30 +0100 Subject: [PATCH 1/2] fix: correct starship git_status variable interpolation syntax Use ${count} instead of $count for proper variable interpolation in Starship format strings. --- starship.toml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/starship.toml b/starship.toml index bda53f1..d769964 100644 --- a/starship.toml +++ b/starship.toml @@ -37,16 +37,16 @@ style = "bold purple" [git_status] style = "red bold" # Accessible text-based indicators (emojis preserved as comments below) -conflicted = "[CONFLICT$count] " -ahead = "[↑$count]" -behind = "[↓$count]" -diverged = "[↕↑$ahead_count↓$behind_count]" -untracked = "[?$count]" -stashed = "[STASH$count]" -modified = "[M$count]" -staged = '[+$count](green)' -renamed = "[R$count]" -deleted = "[-$count]" +conflicted = "[CONFLICT${count}] " +ahead = "[↑${count}]" +behind = "[↓${count}]" +diverged = "[↕↑${ahead_count}↓${behind_count}]" +untracked = "?${count}" +stashed = "[STASH${count}]" +modified = "[M${count}]" +staged = '[+${count}](green)' +renamed = "[R${count}]" +deleted = "[-${count}]" # Original emoji versions (uncomment to restore): # conflicted = "⚔️ " # ahead = "⇡${count}" From 2fa83c76cb67331df817b04e0a7fce41ecd8c63f Mon Sep 17 00:00:00 2001 From: Max Rantil Date: Thu, 25 Dec 2025 16:40:58 +0100 Subject: [PATCH 2/2] fix: update starship.toml with cleaner format and proper configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Simplified prompt format with clean username@hostname display - Added command_timeout = 30000 for better performance - Updated git_status with cleaner format string - Enabled fish_style_pwd_dir_length for directory display - Updated language symbols (🐍 for Python, 🌿 for git) - Disabled rust, nodejs, and kubernetes modules - Changed error symbol from ➜ to ✗ for better clarity --- starship.toml | 98 ++++++++++++++++++++++++--------------------------- 1 file changed, 46 insertions(+), 52 deletions(-) diff --git a/starship.toml b/starship.toml index d769964..0eca1fd 100644 --- a/starship.toml +++ b/starship.toml @@ -1,77 +1,71 @@ # Starship prompt configuration -# Install: curl -sS https://starship.rs/install.sh | sh +command_timeout = 30000 +# Clean, informative format format = """ -[┌───────────────────>](bold green) -[│](bold green)$username$hostname$directory$git_branch$git_status -[└─>](bold green) """ - -[directory] -style = "blue bold" -truncation_length = 3 -truncate_to_repo = true +$username[@](bold green)$hostname in $directory $git_branch$git_status$python +$character""" # =================================== -# USERNAME - Always show for VM clarity +# USERNAME & HOSTNAME # =================================== [username] -show_always = true # Show even when not SSH'd in -format = "[$user]($style)" # Format: username only -style_user = "bold yellow" # Yellow for regular users -style_root = "bold red" # Red for root (warning!) +show_always = true +format = "[$user]($style)" +style_user = "bold yellow" +style_root = "bold red" disabled = false -# =================================== -# HOSTNAME - Always show for VM clarity -# =================================== [hostname] -ssh_only = false # Show even when not SSH'd in -format = "[@$hostname](bold green) " # Format: @hostname with space -trim_at = "." # Remove domain suffix +ssh_only = false +format = "[$hostname](bold green)" +trim_at = "." disabled = false +# =================================== +# DIRECTORY +# =================================== +[directory] +style = "blue bold" +truncation_length = 3 +truncate_to_repo = true +fish_style_pwd_dir_length = 1 + +# =================================== +# GIT +# =================================== [git_branch] -symbol = " " +symbol = "🌿 " style = "bold purple" [git_status] style = "red bold" -# Accessible text-based indicators (emojis preserved as comments below) -conflicted = "[CONFLICT${count}] " -ahead = "[↑${count}]" -behind = "[↓${count}]" -diverged = "[↕↑${ahead_count}↓${behind_count}]" -untracked = "?${count}" -stashed = "[STASH${count}]" -modified = "[M${count}]" -staged = '[+${count}](green)' -renamed = "[R${count}]" -deleted = "[-${count}]" -# Original emoji versions (uncomment to restore): -# conflicted = "⚔️ " -# ahead = "⇡${count}" -# behind = "⇣${count}" -# diverged = "⇕⇡${ahead_count}⇣${behind_count}" -# untracked = "🤷 " -# stashed = "📦" -# modified = "📝" -# staged = '[++\($count\)](green)' -# renamed = "👅" -# deleted = "🗑" +format = '([\[$all_status$ahead_behind\]]($style) )' +conflicted = "CONFLICT" +ahead = "⇡${count}" +staged = "+${count}" +renamed = "R${count}" +deleted = "-${count}" +# =================================== +# PROMPT CHARACTER +# =================================== [character] success_symbol = "[➜](bold green)" -error_symbol = "[➜](bold red)" - -[nodejs] -disabled = true +error_symbol = "[✗](bold red)" +# =================================== +# LANGUAGES +# =================================== [python] disabled = false -symbol = "PY " -# symbol = "🐍 " +format = 'via [🐍 $version]($style) ' [rust] -disabled = false -symbol = "RS " -# symbol = "🦀 " +disabled = true + +[nodejs] +disabled = true + +[kubernetes] +disabled = true