Skip to content

Struggling with conditional diamond for rprompt #4656

Discussion options

You must be logged in to vote

@mu88 I don't have the behaviour from the second screenshot BTW. That said, this is a very advanced question, but it can be achieved using a plain segment instead of diamond for the time segment:

"style": "plain",
"template": "{{ if .Segments.Contains \"Dotnet\" }}<background,parentBackground>\ue0b2{{ else }}<background,transparent>\ue0b6{{ end }}</> world <background,transparent>\ue0b4</>"

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@mu88
Comment options

@JanDeDobbeleer
Comment options

@mu88
Comment options

@JanDeDobbeleer
Comment options

Answer selected by mu88
@mu88
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants