Skip to content

Commit d4564b2

Browse files
committed
Changed themes to use empty string, which couldn't be done before.
1 parent 3740531 commit d4564b2

4 files changed

+24
-20
lines changed

themes/TruncatedPwd_WindowTitle.bgptheme

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ override_git_prompt_colors() {
2727
function prompt_callback {
2828
local PS1="\u@\h: $(gp_truncate_pwd)"
2929
gp_set_window_title "$PS1"
30-
echo -n "[${PS1}]${ResetColor}"
30+
echo -n "${Yellow}[${PS1}]${ResetColor}"
3131
}
3232

33-
GIT_PROMPT_START_USER="${Yellow}"
34-
GIT_PROMPT_START_ROOT="${GIT_PROMPT_START_USER}"
35-
GIT_PROMPT_END_USER=" _LAST_COMMAND_INDICATOR_\n${White}${Time12a}${ResetColor} $ "
36-
GIT_PROMPT_END_ROOT=" _LAST_COMMAND_INDICATOR_\n${White}${Time12a}${ResetColor} # "
33+
local gp_end=" _LAST_COMMAND_INDICATOR_\n${White}${Time12a}${ResetColor}"
34+
35+
GIT_PROMPT_START_USER=""
36+
GIT_PROMPT_END_USER="${gp_end} $ "
37+
GIT_PROMPT_END_ROOT="${gp_end} # "
3738
}
3839

3940
reload_git_prompt_colors "TruncatedPwd_WindowTitle"

themes/TruncatedPwd_WindowTitle_NoExitState.bgptheme

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ override_git_prompt_colors() {
2727
function prompt_callback {
2828
local PS1="\u@\h: $(gp_truncate_pwd)"
2929
gp_set_window_title "$PS1"
30-
echo -n "[${PS1}]${ResetColor}"
30+
echo -n "${Yellow}[${PS1}]${ResetColor}"
3131
}
3232

33-
GIT_PROMPT_START_USER="${Yellow}"
34-
GIT_PROMPT_START_ROOT="${GIT_PROMPT_START_USER}"
35-
GIT_PROMPT_END_USER="\n${White}${Time12a}${ResetColor} $ "
36-
GIT_PROMPT_END_ROOT="\n${White}${Time12a}${ResetColor} # "
33+
local gp_end=" _LAST_COMMAND_INDICATOR_\n${White}${Time12a}${ResetColor}"
34+
35+
GIT_PROMPT_START_USER=""
36+
GIT_PROMPT_END_USER="${gp_end} $ "
37+
GIT_PROMPT_END_ROOT="${gp_end} # "
3738
}
3839

3940
reload_git_prompt_colors "TruncatedPwd_WindowTitle_NoExitState"

themes/TruncatedPwd_WindowTitle_NoExitState_Ubuntu.bgptheme

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ override_git_prompt_colors() {
2828
function prompt_callback {
2929
local PS1="\u@\h: $(gp_truncate_pwd)"
3030
gp_set_window_title "$PS1"
31-
echo -n "[${PS1}]${ResetColor}"
31+
echo -n "${Yellow}[${PS1}]${ResetColor}"
3232
}
3333

34-
GIT_PROMPT_START_USER="${Yellow}"
35-
GIT_PROMPT_START_ROOT="${GIT_PROMPT_START_USER}"
36-
GIT_PROMPT_END_USER="\n${White}${Time12a}${ResetColor} $ "
37-
GIT_PROMPT_END_ROOT="\n${White}${Time12a}${ResetColor} # "
34+
local gp_end=" _LAST_COMMAND_INDICATOR_\n${White}${Time12a}${ResetColor}"
35+
36+
GIT_PROMPT_START_USER=""
37+
GIT_PROMPT_END_USER="${gp_end} $ "
38+
GIT_PROMPT_END_ROOT="${gp_end} # "
3839

3940
GIT_PROMPT_STAGED="${Red}● " # the number of staged files/directories
4041
GIT_PROMPT_CLEAN="${BoldGreen}✔ " # a colored flag indicating a "clean" repo

themes/TruncatedPwd_WindowTitle_Ubuntu.bgptheme

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ override_git_prompt_colors() {
2828
function prompt_callback {
2929
local PS1="\u@\h: $(gp_truncate_pwd)"
3030
gp_set_window_title "$PS1"
31-
echo -n "[${PS1}]${ResetColor}"
31+
echo -n "${Yellow}[${PS1}]${ResetColor}"
3232
}
3333

34-
GIT_PROMPT_START_USER="${Yellow}"
35-
GIT_PROMPT_START_ROOT="${GIT_PROMPT_START_USER}"
36-
GIT_PROMPT_END_USER=" _LAST_COMMAND_INDICATOR_\n${White}${Time12a}${ResetColor} $ "
37-
GIT_PROMPT_END_ROOT=" _LAST_COMMAND_INDICATOR_\n${White}${Time12a}${ResetColor} # "
34+
local gp_end=" _LAST_COMMAND_INDICATOR_\n${White}${Time12a}${ResetColor}"
35+
36+
GIT_PROMPT_START_USER=""
37+
GIT_PROMPT_END_USER="${gp_end} $ "
38+
GIT_PROMPT_END_ROOT="${gp_end} # "
3839

3940
GIT_PROMPT_STAGED="${Red}● " # the number of staged files/directories
4041
GIT_PROMPT_CLEAN="${BoldGreen}✔ " # a colored flag indicating a "clean" repo

0 commit comments

Comments
 (0)