From 79104373bd02556a5b36f9d673d065898a0990d5 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 18 Aug 2025 17:08:57 +0200 Subject: [PATCH] Minimal git status too --- config/starship.toml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/config/starship.toml b/config/starship.toml index 0fed354a..0ea710ca 100644 --- a/config/starship.toml +++ b/config/starship.toml @@ -1,6 +1,6 @@ add_newline = true command_timeout = 200 -format = "[$directory$git_branch]($style)$character" +format = "[$directory$git_branch$git_status]($style)$character" [character] error_symbol = "[✗](bold red)" @@ -15,3 +15,18 @@ repo_root_format = "[$repo_root]($repo_root_style)[$path]($style)[$read_only]($r [git_branch] format = "[$branch]($style) " style = "italic" + +[git_status] +format = '[$all_status]($style) ' +style = "" +ahead = '⇡${count}' +diverged = '⇕⇡${ahead_count}⇣${behind_count}' +behind = '⇣${count}' +conflicted = '' +up_to_date = '' +untracked = '' +modified = '' +stashed = '' +staged = '' +renamed = '' +deleted = ''