|
|
|
|
@ -21,6 +21,7 @@ unset_git_prompt_colors() { |
|
|
|
|
unset GIT_PROMPT_COMMAND_OK |
|
|
|
|
unset GIT_PROMPT_COMMAND_FAIL |
|
|
|
|
unset GIT_PROMPT_VIRTUALENV |
|
|
|
|
unset GIT_PROMPT_UPSTREAM |
|
|
|
|
unset GIT_PROMPT_START_USER |
|
|
|
|
unset GIT_PROMPT_START_ROOT |
|
|
|
|
unset GIT_PROMPT_END_USER |
|
|
|
|
@ -31,8 +32,7 @@ unset_git_prompt_colors() { |
|
|
|
|
unset GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
define_helpers() |
|
|
|
|
{ |
|
|
|
|
define_helpers() { |
|
|
|
|
PathShort="${BoldBlue}\u:${Cyan}\W" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -68,6 +68,11 @@ define_undefined_git_prompt_colors() { |
|
|
|
|
# the name of the current virtual environment (currently CONDA and VIRTUAL_ENV) |
|
|
|
|
if [[ -z ${GIT_PROMPT_VIRTUALENV} ]]; then GIT_PROMPT_VIRTUALENV="(${Blue}_VIRTUALENV_${ResetColor}) "; fi |
|
|
|
|
|
|
|
|
|
# template for displaying the current remote tracking branch |
|
|
|
|
# use the placeholder _UPSTREAM_ will be replaced with |
|
|
|
|
# the name of the current remote tracking branch |
|
|
|
|
if [[ -z ${GIT_PROMPT_UPSTREAM} ]]; then GIT_PROMPT_UPSTREAM=" {${Blue}_UPSTREAM_${ResetColor}}"; fi |
|
|
|
|
|
|
|
|
|
# _LAST_COMMAND_INDICATOR_ will be replaced by the appropriate GIT_PROMPT_COMMAND_OK OR GIT_PROMPT_COMMAND_FAIL |
|
|
|
|
if [[ -z ${GIT_PROMPT_START_USER} ]]; then GIT_PROMPT_START_USER="_LAST_COMMAND_INDICATOR_ ${Yellow}${PathShort}${ResetColor}"; fi |
|
|
|
|
|
|
|
|
|
|