Skip to content

Commit 6791792

Browse files
committed
Set GIT_PROMPT_MASTER_BRANCH to GIT_PROMPT_BRANCH by default
1 parent c054c66 commit 6791792

12 files changed

+12
-12
lines changed

themes/Chmike.bgptheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ override_git_prompt_colors() {
1414

1515
GIT_PROMPT_THEME_NAME="Chmike"
1616
GIT_PROMPT_BRANCH="${Green}"
17-
GIT_PROMPT_MASTER_BRANCH="${Green}"
17+
GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}"
1818
GIT_PROMPT_REMOTE=" "
1919
GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING="⭐"
2020

themes/Custom.bgptemplate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ override_git_prompt_colors() {
1414
# GIT_PROMPT_SEPARATOR="|" # separates each item
1515

1616
# GIT_PROMPT_BRANCH="${Magenta}" # the git branch that is active in the current directory
17-
# GIT_PROMPT_MASTER_BRANCH="${Magenta}" # used if the git branch that is active in the current directory is $GIT_PROMPT_MASTER_BRANCHES
17+
# GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}" # used if the git branch that is active in the current directory is $GIT_PROMPT_MASTER_BRANCHES
1818
# GIT_PROMPT_STAGED="${Red}●" # the number of staged files/directories
1919
# GIT_PROMPT_CONFLICTS="${Red}✖ " # the number of files in conflict
2020
# GIT_PROMPT_CHANGED="${Blue}✚ " # the number of changed files

themes/Default.bgptheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ define_undefined_git_prompt_colors() {
4242
if [ -z ${GIT_PROMPT_SEPARATOR+x} ]; then GIT_PROMPT_SEPARATOR="|"; fi # separates each item
4343

4444
if [ -z ${GIT_PROMPT_BRANCH+x} ]; then GIT_PROMPT_BRANCH="${Magenta}"; fi # the git branch that is active in the current directory
45-
if [ -z ${GIT_PROMPT_MASTER_BRANCH+x} ]; then GIT_PROMPT_MASTER_BRANCH="${Magenta}"; fi # used if the git branch that is active in the current directory is $GIT_PROMPT_MASTER_BRANCHES
45+
if [ -z ${GIT_PROMPT_MASTER_BRANCH+x} ]; then GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}"; fi # used if the git branch that is active in the current directory is $GIT_PROMPT_MASTER_BRANCHES
4646
if [ -z ${GIT_PROMPT_STAGED+x} ]; then GIT_PROMPT_STAGED="${Red}●"; fi # the number of staged files/directories
4747
if [ -z ${GIT_PROMPT_CONFLICTS+x} ]; then GIT_PROMPT_CONFLICTS="${Red}✖ "; fi # the number of files in conflict
4848
if [ -z ${GIT_PROMPT_CHANGED+x} ]; then GIT_PROMPT_CHANGED="${Blue}✚ "; fi # the number of changed files

themes/Evermeet.bgptheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ override_git_prompt_colors() {
99
GIT_PROMPT_SEPARATOR="|" # separates each item
1010

1111
GIT_PROMPT_BRANCH="${Magenta}" # the git branch that is active in the current directory
12-
GIT_PROMPT_MASTER_BRANCH="${Magenta}" # the git branch that is active in the current directory
12+
GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}" # used if the git branch that is active in the current directory is $GIT_PROMPT_MASTER_BRANCHES
1313
GIT_PROMPT_STAGED="${Cyan}●" # the number of staged files/directories
1414
GIT_PROMPT_CONFLICTS="${BoldRed}✖" # the number of files in conflict
1515
GIT_PROMPT_CHANGED="${Cyan}✚" # the number of changed files

themes/Evermeet_Lowres.bgptheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ override_git_prompt_colors() {
1111
GIT_PROMPT_SEPARATOR="|" # separates each item
1212

1313
GIT_PROMPT_BRANCH="${Magenta}" # the git branch that is active in the current directory
14-
GIT_PROMPT_MASTER_BRANCH="${Magenta}" # the git branch that is active in the current directory
14+
GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}" # used if the git branch that is active in the current directory is $GIT_PROMPT_MASTER_BRANCHES
1515
GIT_PROMPT_STAGED="${Cyan}●" # the number of staged files/directories
1616
GIT_PROMPT_CONFLICTS="${BoldRed}✖ " # the number of files in conflict
1717
GIT_PROMPT_CHANGED="${Cyan}✚ " # the number of changed files

themes/Evermeet_Ubuntu.bgptheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ override_git_prompt_colors() {
1111
GIT_PROMPT_SEPARATOR="|" # separates each item
1212

1313
GIT_PROMPT_BRANCH="${Magenta}" # the git branch that is active in the current directory
14-
GIT_PROMPT_MASTER_BRANCH="${Magenta}" # the git branch that is active in the current directory
14+
GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}" # used if the git branch that is active in the current directory is $GIT_PROMPT_MASTER_BRANCHES
1515
GIT_PROMPT_STAGED="${Cyan}● " # the number of staged files/directories
1616
GIT_PROMPT_CONFLICTS="${BoldRed}✖ " # the number of files in conflict
1717
GIT_PROMPT_CHANGED="${Cyan}✚ " # the number of changed files

themes/Minimal.bgptheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ override_git_prompt_colors() {
3636

3737
Time12a="\$(date +%H:%M:%S)"
3838
GIT_PROMPT_BRANCH="${BoldMagenta}" # the git branch that is active in the current directory
39-
GIT_PROMPT_MASTER_BRANCH="${BoldMagenta}" # the git branch that is active in the current directory
39+
GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_MASTER_BRANCH}" # used if the git branch that is active in the current directory is $GIT_PROMPT_MASTER_BRANCHES
4040
GIT_PROMPT_PREFIX="" # start of the git info string
4141
GIT_PROMPT_SUFFIX="" # the end of the git info string
4242
GIT_PROMPT_SEPARATOR="" # separates each item

themes/Minimal_UserHost.bgptheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ override_git_prompt_colors() {
4444
fi
4545

4646
GIT_PROMPT_BRANCH="${BoldMagenta}" # the git branch that is active in the current directory
47-
GIT_PROMPT_MASTER_BRANCH="${BoldMagenta}" # the git branch that is active in the current directory
47+
GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_MASTER_BRANCH}" # used if the git branch that is active in the current directory is $GIT_PROMPT_MASTER_BRANCHES
4848
GIT_PROMPT_PREFIX="" # start of the git info string
4949
GIT_PROMPT_SUFFIX="" # the end of the git info string
5050
GIT_PROMPT_SEPARATOR="" # separates each item

themes/Single_line_Dark.bgptheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
override_git_prompt_colors() {
55
GIT_PROMPT_THEME_NAME="Single_line_nono031"
66
GIT_PROMPT_BRANCH="${Cyan}"
7-
GIT_PROMPT_MASTER_BRANCH="${Cyan}"
7+
GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}"
88
GIT_PROMPT_UNTRACKED=" ${Cyan}…${ResetColor}"
99
GIT_PROMPT_CHANGED="${Yellow}✚ "
1010
GIT_PROMPT_STAGED="${Magenta}●"

themes/Single_line_NoExitState_Gentoo.bgptheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
override_git_prompt_colors() {
55
GIT_PROMPT_THEME_NAME="Single_line_NoExitState_Gentoo"
66
GIT_PROMPT_BRANCH="${Cyan}"
7-
GIT_PROMPT_MASTER_BRANCH="${Cyan}"
7+
GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}"
88
GIT_PROMPT_UNTRACKED=" ${Cyan}…${ResetColor}"
99
GIT_PROMPT_CHANGED="${Yellow}✚ "
1010
GIT_PROMPT_STAGED="${Magenta}●"

themes/Single_line_NoExitState_openSUSE.bgptheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
override_git_prompt_colors() {
55
GIT_PROMPT_THEME_NAME="Single_line_NoExitState_openSUSE"
66
GIT_PROMPT_BRANCH="${Cyan}"
7-
GIT_PROMPT_MASTER_BRANCH="${Cyan}"
7+
GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}"
88
GIT_PROMPT_UNTRACKED=" ${Cyan}…${ResetColor}"
99
GIT_PROMPT_CHANGED="${Yellow}✚ "
1010
GIT_PROMPT_STAGED="${Magenta}●"

themes/Single_line_openSUSE.bgptheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
override_git_prompt_colors() {
55
GIT_PROMPT_THEME_NAME="Single_line_openSUSE"
66
GIT_PROMPT_BRANCH="${Cyan}"
7-
GIT_PROMPT_MASTER_BRANCH="${Cyan}"
7+
GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}"
88
GIT_PROMPT_UNTRACKED=" ${Cyan}…${ResetColor}"
99
GIT_PROMPT_CHANGED="${Yellow}✚ "
1010
GIT_PROMPT_STAGED="${Magenta}●"

0 commit comments

Comments
 (0)