From 99a4e186664805dfac319437397bf93a9b669878 Mon Sep 17 00:00:00 2001 From: Nikurasu Date: Fri, 10 May 2024 07:53:24 +0200 Subject: [PATCH] feat(starship): add git user Show git username in repositories in starship shell --- starship/starship.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/starship/starship.toml b/starship/starship.toml index 6f0a62d..362647c 100755 --- a/starship/starship.toml +++ b/starship/starship.toml @@ -40,6 +40,7 @@ symbol = " " [cmd_duration] style = "bold purple" +format = "took [󱎫 $duration]($style) " [dart] symbol = " " @@ -107,3 +108,10 @@ symbol = " " [spack] symbol = "🅢 " + +[custom.git_user] +command = "git config user.name" +when = "git rev-parse --git-dir 2> /dev/null" +format = "by [$symbol$output]($style) " +style = "bright-yellow bold" +symbol = " "