You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it somehow possible to set the branch color depending on the branch name?
I'd like to have something like:
master: black
everything else: red
to clearly indicate when I'm not working on master.
It would be even better to have a lookup map or function to make this flexible - one of the repos I'm working with uses "production" instead of "master" ;-) and maybe some people also want a different color for specific branches.
Is there a way to do this already (if so, what did I overlook?), or would you be willing to implement it?
- add $GIT_PROMPT_MASTER_BRANCH - color for master branch
- add $GIT_PROMPT_MASTER_BRANCHES - branch name(s) that use
$GIT_PROMPT_MASTER_BRANCH color, 'master' by default)
All other branches will continue to use $GIT_PROMPT_BRANCH
Fixesmagicmonty#311
Is it somehow possible to set the branch color depending on the branch name?
I'd like to have something like:
to clearly indicate when I'm not working on master.
It would be even better to have a lookup map or function to make this flexible - one of the repos I'm working with uses "production" instead of "master" ;-) and maybe some people also want a different color for specific branches.
Is there a way to do this already (if so, what did I overlook?), or would you be willing to implement it?
(CC @ccboltz)
The text was updated successfully, but these errors were encountered: