Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow different color for master branch #363

Merged
merged 2 commits into from
Dec 18, 2017

Conversation

cboltz
Copy link

@cboltz cboltz commented Dec 17, 2017

  • 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

Also add $GIT_PROMPT_MASTER_BRANCH to all themes that set $GIT_PROMPT_BRANCH, using the same color as $GIT_PROMPT_BRANCH to avoid unintended changes.

Fixes #311

Christian Boltz added 2 commits December 17, 2017 23:13
- 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

Fixes magicmonty#311
... that set $GIT_PROMPT_BRANCH, using the same color as
$GIT_PROMPT_BRANCH to avoid unintended changes.
@magicmonty magicmonty merged commit 7deca31 into magicmonty:master Dec 18, 2017
@magicmonty
Copy link
Owner

Nice idea, thanks a lot

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

Successfully merging this pull request may close these issues.

None yet

2 participants