justjanne / powerline-go

A beautiful and useful low-latency prompt for your shell, written in go
GNU General Public License v3.0
2.73k stars 268 forks source link

How to display git remote for tracking branch? #359

Closed mloskot closed 1 year ago

mloskot commented 2 years ago

I used to use git-prompt.sh which displays name of remote for tracking branch in Git Bash prompt, like so: image

I am failing to find out how to achieve the same with the awesome powerline-go (Thanks!). Is it possible?

p.s. Since the Discussions are not enabled, I've taken the liberty to ask question via Issues. I hope it's OK.

scop commented 1 year ago

Not natively I think. But via a plugin that does what the git-prompt.sh shell function responsible for that segment does and outputs it appropriately it should be doable; more info in the -module option docs about unrecognized modules.

mloskot commented 1 year ago

Thanks for the directions. If I come up with anything on my end, I'll share it. I think this can be close as answered now.