Custom command for https://starship.rs/
Show git user email Very useful when you're working for several organizations with difference git settings
Custom command for https://starship.rs/
Show git user email Very useful when you're working for several organizations with difference git settings
format = """ | |
... | |
$custom\ | |
$cmd_duration\ | |
${custom.git_email}\ | |
$line_break\ | |
... | |
""" | |
[custom.git_email] | |
command = "git config user.email" | |
when = "git rev-parse --git-dir 2> /dev/null" | |
format = "by [$output]($style) " | |
style = "bright-yellow bold" |
Thanks!