oh-my-posh settings in collocated repositories #6864
danybeam
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone!
I wrote some configs for oh-my-posh so that it does NOT show both jujutsu and git segments on a collocated repo. I figured that someone might like it.
On the git template section of the omp file surround the template with
{{ if not .Segments.Jujutsu }} your regular template {{end}}
It's super simple but it qualifies under what I would call "advanced basics". It took me a good second to figure out how to get information from other segments... in fact I don't think I fully get it yet but I got what I wanted 🤷🏻
I also added something to make the summary a little more human readable in case someone's interested
Beta Was this translation helpful? Give feedback.
All reactions