Print branch colour depending on name #531
Answered
by
ericbn
jdiegosierra
asked this question in
Q&A
-
Using the git-info module I want to print the branch name with red colour if the branch name is main and green for the rest of the cases. |
Beta Was this translation helpful? Give feedback.
Answered by
ericbn
Apr 2, 2024
Replies: 1 comment 1 reply
-
Hola @jdiegosierra. You'll have to test for the branch name value yourself:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jdiegosierra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hola @jdiegosierra. You'll have to test for the branch name value yourself: