Use Angle brackets in git segment template #5568
-
My desired git segment is just the branch name in angle brackets; a simple one that doesn't require a nerd font (disregard how the triple equals renders in github)
I got it working, more or less, with this modification of one of the default themes. However, if I replace 'xx' below with '<' and 'yy' with '>' it breaks it and doesn't render the segment. How can I properly escape the angle brackets? If I use square brackets it works, if I leave it 'xx' and 'yy' it works (renders that)
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@rmiller3 Although undocumented, the escape is possible: |
Beta Was this translation helpful? Give feedback.
@rmiller3 Although undocumented, the escape is possible:
<<>
for a single<
, and<>>
for a single>
.