feat(starship): add git user

Show git username in repositories in starship shell
This commit is contained in:
Nikurasu 2024-05-10 07:53:24 +02:00
parent a9515d0ef9
commit 99a4e18666
Signed by: Nikurasu
GPG key ID: 9E7F14C03EF1F271

View file

@ -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 = " "