Set GIT_PROMPT_MASTER_BRANCH to GIT_PROMPT_BRANCH by default

master
Martin Gondermann 8 years ago
parent c054c66fb9
commit 6791792ae3
  1. 2
      themes/Chmike.bgptheme
  2. 2
      themes/Custom.bgptemplate
  3. 2
      themes/Default.bgptheme
  4. 2
      themes/Evermeet.bgptheme
  5. 2
      themes/Evermeet_Lowres.bgptheme
  6. 2
      themes/Evermeet_Ubuntu.bgptheme
  7. 2
      themes/Minimal.bgptheme
  8. 2
      themes/Minimal_UserHost.bgptheme
  9. 2
      themes/Single_line_Dark.bgptheme
  10. 2
      themes/Single_line_NoExitState_Gentoo.bgptheme
  11. 2
      themes/Single_line_NoExitState_openSUSE.bgptheme
  12. 2
      themes/Single_line_openSUSE.bgptheme

@ -14,7 +14,7 @@ override_git_prompt_colors() {
GIT_PROMPT_THEME_NAME="Chmike" GIT_PROMPT_THEME_NAME="Chmike"
GIT_PROMPT_BRANCH="${Green}" GIT_PROMPT_BRANCH="${Green}"
GIT_PROMPT_MASTER_BRANCH="${Green}" GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}"
GIT_PROMPT_REMOTE=" " GIT_PROMPT_REMOTE=" "
GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING="⭐" GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING="⭐"

@ -14,7 +14,7 @@ override_git_prompt_colors() {
# GIT_PROMPT_SEPARATOR="|" # separates each item # GIT_PROMPT_SEPARATOR="|" # separates each item
# GIT_PROMPT_BRANCH="${Magenta}" # the git branch that is active in the current directory # GIT_PROMPT_BRANCH="${Magenta}" # the git branch that is active in the current directory
# GIT_PROMPT_MASTER_BRANCH="${Magenta}" # used if the git branch that is active in the current directory is $GIT_PROMPT_MASTER_BRANCHES # GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}" # used if the git branch that is active in the current directory is $GIT_PROMPT_MASTER_BRANCHES
# GIT_PROMPT_STAGED="${Red}●" # the number of staged files/directories # GIT_PROMPT_STAGED="${Red}●" # the number of staged files/directories
# GIT_PROMPT_CONFLICTS="${Red}✖ " # the number of files in conflict # GIT_PROMPT_CONFLICTS="${Red}✖ " # the number of files in conflict
# GIT_PROMPT_CHANGED="${Blue}✚ " # the number of changed files # GIT_PROMPT_CHANGED="${Blue}✚ " # the number of changed files

@ -42,7 +42,7 @@ define_undefined_git_prompt_colors() {
if [ -z ${GIT_PROMPT_SEPARATOR+x} ]; then GIT_PROMPT_SEPARATOR="|"; fi # separates each item if [ -z ${GIT_PROMPT_SEPARATOR+x} ]; then GIT_PROMPT_SEPARATOR="|"; fi # separates each item
if [ -z ${GIT_PROMPT_BRANCH+x} ]; then GIT_PROMPT_BRANCH="${Magenta}"; fi # the git branch that is active in the current directory if [ -z ${GIT_PROMPT_BRANCH+x} ]; then GIT_PROMPT_BRANCH="${Magenta}"; fi # the git branch that is active in the current directory
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 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
if [ -z ${GIT_PROMPT_STAGED+x} ]; then GIT_PROMPT_STAGED="${Red}●"; fi # the number of staged files/directories if [ -z ${GIT_PROMPT_STAGED+x} ]; then GIT_PROMPT_STAGED="${Red}●"; fi # the number of staged files/directories
if [ -z ${GIT_PROMPT_CONFLICTS+x} ]; then GIT_PROMPT_CONFLICTS="${Red}✖ "; fi # the number of files in conflict if [ -z ${GIT_PROMPT_CONFLICTS+x} ]; then GIT_PROMPT_CONFLICTS="${Red}✖ "; fi # the number of files in conflict
if [ -z ${GIT_PROMPT_CHANGED+x} ]; then GIT_PROMPT_CHANGED="${Blue}✚ "; fi # the number of changed files if [ -z ${GIT_PROMPT_CHANGED+x} ]; then GIT_PROMPT_CHANGED="${Blue}✚ "; fi # the number of changed files

@ -9,7 +9,7 @@ override_git_prompt_colors() {
GIT_PROMPT_SEPARATOR="|" # separates each item GIT_PROMPT_SEPARATOR="|" # separates each item
GIT_PROMPT_BRANCH="${Magenta}" # the git branch that is active in the current directory GIT_PROMPT_BRANCH="${Magenta}" # the git branch that is active in the current directory
GIT_PROMPT_MASTER_BRANCH="${Magenta}" # the git branch that is active in the current directory GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}" # used if the git branch that is active in the current directory is $GIT_PROMPT_MASTER_BRANCHES
GIT_PROMPT_STAGED="${Cyan}●" # the number of staged files/directories GIT_PROMPT_STAGED="${Cyan}●" # the number of staged files/directories
GIT_PROMPT_CONFLICTS="${BoldRed}✖" # the number of files in conflict GIT_PROMPT_CONFLICTS="${BoldRed}✖" # the number of files in conflict
GIT_PROMPT_CHANGED="${Cyan}✚" # the number of changed files GIT_PROMPT_CHANGED="${Cyan}✚" # the number of changed files

@ -11,7 +11,7 @@ override_git_prompt_colors() {
GIT_PROMPT_SEPARATOR="|" # separates each item GIT_PROMPT_SEPARATOR="|" # separates each item
GIT_PROMPT_BRANCH="${Magenta}" # the git branch that is active in the current directory GIT_PROMPT_BRANCH="${Magenta}" # the git branch that is active in the current directory
GIT_PROMPT_MASTER_BRANCH="${Magenta}" # the git branch that is active in the current directory GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}" # used if the git branch that is active in the current directory is $GIT_PROMPT_MASTER_BRANCHES
GIT_PROMPT_STAGED="${Cyan}●" # the number of staged files/directories GIT_PROMPT_STAGED="${Cyan}●" # the number of staged files/directories
GIT_PROMPT_CONFLICTS="${BoldRed}✖ " # the number of files in conflict GIT_PROMPT_CONFLICTS="${BoldRed}✖ " # the number of files in conflict
GIT_PROMPT_CHANGED="${Cyan}✚ " # the number of changed files GIT_PROMPT_CHANGED="${Cyan}✚ " # the number of changed files

@ -11,7 +11,7 @@ override_git_prompt_colors() {
GIT_PROMPT_SEPARATOR="|" # separates each item GIT_PROMPT_SEPARATOR="|" # separates each item
GIT_PROMPT_BRANCH="${Magenta}" # the git branch that is active in the current directory GIT_PROMPT_BRANCH="${Magenta}" # the git branch that is active in the current directory
GIT_PROMPT_MASTER_BRANCH="${Magenta}" # the git branch that is active in the current directory GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}" # used if the git branch that is active in the current directory is $GIT_PROMPT_MASTER_BRANCHES
GIT_PROMPT_STAGED="${Cyan}● " # the number of staged files/directories GIT_PROMPT_STAGED="${Cyan}● " # the number of staged files/directories
GIT_PROMPT_CONFLICTS="${BoldRed}✖ " # the number of files in conflict GIT_PROMPT_CONFLICTS="${BoldRed}✖ " # the number of files in conflict
GIT_PROMPT_CHANGED="${Cyan}✚ " # the number of changed files GIT_PROMPT_CHANGED="${Cyan}✚ " # the number of changed files

@ -36,7 +36,7 @@ override_git_prompt_colors() {
Time12a="\$(date +%H:%M:%S)" Time12a="\$(date +%H:%M:%S)"
GIT_PROMPT_BRANCH="${BoldMagenta}" # the git branch that is active in the current directory GIT_PROMPT_BRANCH="${BoldMagenta}" # the git branch that is active in the current directory
GIT_PROMPT_MASTER_BRANCH="${BoldMagenta}" # the git branch that is active in the current directory 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
GIT_PROMPT_PREFIX="" # start of the git info string GIT_PROMPT_PREFIX="" # start of the git info string
GIT_PROMPT_SUFFIX="" # the end of the git info string GIT_PROMPT_SUFFIX="" # the end of the git info string
GIT_PROMPT_SEPARATOR="" # separates each item GIT_PROMPT_SEPARATOR="" # separates each item

@ -44,7 +44,7 @@ override_git_prompt_colors() {
fi fi
GIT_PROMPT_BRANCH="${BoldMagenta}" # the git branch that is active in the current directory GIT_PROMPT_BRANCH="${BoldMagenta}" # the git branch that is active in the current directory
GIT_PROMPT_MASTER_BRANCH="${BoldMagenta}" # the git branch that is active in the current directory 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
GIT_PROMPT_PREFIX="" # start of the git info string GIT_PROMPT_PREFIX="" # start of the git info string
GIT_PROMPT_SUFFIX="" # the end of the git info string GIT_PROMPT_SUFFIX="" # the end of the git info string
GIT_PROMPT_SEPARATOR="" # separates each item GIT_PROMPT_SEPARATOR="" # separates each item

@ -4,7 +4,7 @@
override_git_prompt_colors() { override_git_prompt_colors() {
GIT_PROMPT_THEME_NAME="Single_line_nono031" GIT_PROMPT_THEME_NAME="Single_line_nono031"
GIT_PROMPT_BRANCH="${Cyan}" GIT_PROMPT_BRANCH="${Cyan}"
GIT_PROMPT_MASTER_BRANCH="${Cyan}" GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}"
GIT_PROMPT_UNTRACKED=" ${Cyan}…${ResetColor}" GIT_PROMPT_UNTRACKED=" ${Cyan}…${ResetColor}"
GIT_PROMPT_CHANGED="${Yellow}✚ " GIT_PROMPT_CHANGED="${Yellow}✚ "
GIT_PROMPT_STAGED="${Magenta}●" GIT_PROMPT_STAGED="${Magenta}●"

@ -4,7 +4,7 @@
override_git_prompt_colors() { override_git_prompt_colors() {
GIT_PROMPT_THEME_NAME="Single_line_NoExitState_Gentoo" GIT_PROMPT_THEME_NAME="Single_line_NoExitState_Gentoo"
GIT_PROMPT_BRANCH="${Cyan}" GIT_PROMPT_BRANCH="${Cyan}"
GIT_PROMPT_MASTER_BRANCH="${Cyan}" GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}"
GIT_PROMPT_UNTRACKED=" ${Cyan}…${ResetColor}" GIT_PROMPT_UNTRACKED=" ${Cyan}…${ResetColor}"
GIT_PROMPT_CHANGED="${Yellow}✚ " GIT_PROMPT_CHANGED="${Yellow}✚ "
GIT_PROMPT_STAGED="${Magenta}●" GIT_PROMPT_STAGED="${Magenta}●"

@ -4,7 +4,7 @@
override_git_prompt_colors() { override_git_prompt_colors() {
GIT_PROMPT_THEME_NAME="Single_line_NoExitState_openSUSE" GIT_PROMPT_THEME_NAME="Single_line_NoExitState_openSUSE"
GIT_PROMPT_BRANCH="${Cyan}" GIT_PROMPT_BRANCH="${Cyan}"
GIT_PROMPT_MASTER_BRANCH="${Cyan}" GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}"
GIT_PROMPT_UNTRACKED=" ${Cyan}…${ResetColor}" GIT_PROMPT_UNTRACKED=" ${Cyan}…${ResetColor}"
GIT_PROMPT_CHANGED="${Yellow}✚ " GIT_PROMPT_CHANGED="${Yellow}✚ "
GIT_PROMPT_STAGED="${Magenta}●" GIT_PROMPT_STAGED="${Magenta}●"

@ -4,7 +4,7 @@
override_git_prompt_colors() { override_git_prompt_colors() {
GIT_PROMPT_THEME_NAME="Single_line_openSUSE" GIT_PROMPT_THEME_NAME="Single_line_openSUSE"
GIT_PROMPT_BRANCH="${Cyan}" GIT_PROMPT_BRANCH="${Cyan}"
GIT_PROMPT_MASTER_BRANCH="${Cyan}" GIT_PROMPT_MASTER_BRANCH="${GIT_PROMPT_BRANCH}"
GIT_PROMPT_UNTRACKED=" ${Cyan}…${ResetColor}" GIT_PROMPT_UNTRACKED=" ${Cyan}…${ResetColor}"
GIT_PROMPT_CHANGED="${Yellow}✚ " GIT_PROMPT_CHANGED="${Yellow}✚ "
GIT_PROMPT_STAGED="${Magenta}●" GIT_PROMPT_STAGED="${Magenta}●"

Loading…
Cancel
Save