|
|
|
@ -105,7 +105,7 @@ function git_prompt_config() |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [[ -n "${VIRTUAL_ENV}" ]]; then |
|
|
|
if [[ -n "${VIRTUAL_ENV}" ]]; then |
|
|
|
EMPTY_PROMPT="${Blue}($(basename "${VIRTUAL_ENV}"))${ResetColor} ${PROMPT_START}$($prompt_callback)${PROMPT_END}" |
|
|
|
EMPTY_PROMPT="(${Blue}$(basename "${VIRTUAL_ENV}")${ResetColor}) ${PROMPT_START}$($prompt_callback)${PROMPT_END}" |
|
|
|
else |
|
|
|
else |
|
|
|
EMPTY_PROMPT="${PROMPT_START}$($prompt_callback)${PROMPT_END}" |
|
|
|
EMPTY_PROMPT="${PROMPT_START}$($prompt_callback)${PROMPT_END}" |
|
|
|
fi |
|
|
|
fi |
|
|
|
@ -177,11 +177,11 @@ function updatePrompt() { |
|
|
|
local PROMPT_START |
|
|
|
local PROMPT_START |
|
|
|
local PROMPT_END |
|
|
|
local PROMPT_END |
|
|
|
local EMPTY_PROMPT |
|
|
|
local EMPTY_PROMPT |
|
|
|
local ResetColor |
|
|
|
|
|
|
|
local Blue |
|
|
|
|
|
|
|
local GIT_PROMPT_FETCH_TIMEOUT |
|
|
|
local GIT_PROMPT_FETCH_TIMEOUT |
|
|
|
local __GIT_STATUS_CMD |
|
|
|
local __GIT_STATUS_CMD |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
local Blue="\[\033[0;34m\]" |
|
|
|
|
|
|
|
|
|
|
|
git_prompt_config |
|
|
|
git_prompt_config |
|
|
|
|
|
|
|
|
|
|
|
local -a GitStatus |
|
|
|
local -a GitStatus |
|
|
|
@ -236,7 +236,7 @@ function updatePrompt() { |
|
|
|
|
|
|
|
|
|
|
|
PS1="${PROMPT_START}$($prompt_callback)${STATUS}${PROMPT_END}" |
|
|
|
PS1="${PROMPT_START}$($prompt_callback)${STATUS}${PROMPT_END}" |
|
|
|
if [[ -n "${VIRTUAL_ENV}" ]]; then |
|
|
|
if [[ -n "${VIRTUAL_ENV}" ]]; then |
|
|
|
PS1="${Blue}($(basename "${VIRTUAL_ENV}"))${ResetColor} ${PS1}" |
|
|
|
PS1="(${Blue}$(basename ${VIRTUAL_ENV})${ResetColor}) ${PS1}" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
else |
|
|
|
else |
|
|
|
@ -267,4 +267,4 @@ else |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
git_prompt_dir |
|
|
|
git_prompt_dir |
|
|
|
source $__GIT_PROMPT_DIR/git-prompt-help.sh |
|
|
|
source "$__GIT_PROMPT_DIR/git-prompt-help.sh" |
|
|
|
|