Skip to content

Commit 22d5591

Browse files
committed
Merge pull request magicmonty#192 from ogr3/environment-fix
Let GIT_PROMPT_STATUS_COMMAND be set before loading prompt
2 parents a1c94fc + f0dea79 commit 22d5591

4 files changed

+2
-5
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ git clone https://github.com/magicmonty/bash-git-prompt.git .bash-git-prompt
125125

126126
# GIT_PROMPT_SHOW_UPSTREAM=1 # uncomment to show upstream tracking branch
127127

128+
# GIT_PROMPT_STATUS_COMMAND=gitstatus_pre-1.7.10.sh # uncomment to support Git older than 1.7.10
129+
128130
# GIT_PROMPT_START=... # uncomment for custom prompt start sequence
129131
# GIT_PROMPT_END=... # uncomment for custom prompt end sequence
130132

themes/Default.bgptheme

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ unset_git_prompt_colors() {
1616
unset GIT_PROMPT_CLEAN
1717
unset GIT_PROMPT_COMMAND_OK
1818
unset GIT_PROMPT_COMMAND_FAIL
19-
unset GIT_PROMPT_STATUS_COMMAND
2019
unset GIT_PROMPT_VIRTUALENV
2120
unset GIT_PROMPT_UPSTREAM
2221
unset GIT_PROMPT_START_USER

themes/TruncatedPwd_WindowTitle.bgptheme

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ override_git_prompt_colors() {
3030
echo -n "[${PS1}]${ResetColor}"
3131
}
3232

33-
Time12a="\$(date +%H:%M)"
34-
3533
GIT_PROMPT_START_USER="${Yellow}"
3634
GIT_PROMPT_START_ROOT="${GIT_PROMPT_START_USER}"
3735
GIT_PROMPT_END_USER=" _LAST_COMMAND_INDICATOR_\n${White}${Time12a}${ResetColor} $ "

themes/TruncatedPwd_WindowTitle_NoExitState.bgptheme

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ override_git_prompt_colors() {
3030
echo -n "[${PS1}]${ResetColor}"
3131
}
3232

33-
Time12a="\$(date +%H:%M)"
34-
3533
GIT_PROMPT_START_USER="${Yellow}"
3634
GIT_PROMPT_START_ROOT="${GIT_PROMPT_START_USER}"
3735
GIT_PROMPT_END_USER="\n${White}${Time12a}${ResetColor} $ "

0 commit comments

Comments
 (0)