If you want to print the git user/singkey for a local repository in the prompt:
Edit the ~/.config/starship.toml file.
[custom.gituser]
style = "bold fg:220"
detect_folders = ['.git']
format = 'git:[$output]($style)'
command = 'git config -z --get user.email && echo -n "#" && git config --get user.signingkey | cut -c -4'
Will display:
❯ kub:foo@snap in bar on develop [!] is 📦 v1.2.0-SNAPSHOT via ☕ v17 git:uvachon@gmail.com#BABE
@ulrich