|
|
@ -85,27 +85,27 @@ function git-prompt-status() {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
while IFS=$'\n' read line; do
|
|
|
|
while IFS=$'\n' read line; do
|
|
|
|
if [[ "$line" == \?\?\ * ]] && [[ untracked != 'yes' ]]; then
|
|
|
|
if [[ "$line" == \?\?\ * ]] && ! check-bool "$untracked"; then
|
|
|
|
untracked='yes'
|
|
|
|
untracked='yes'
|
|
|
|
indicators="${ZSH_THEME_GIT_PROMPT_UNTRACKED}${indicators}"
|
|
|
|
indicators="${ZSH_THEME_GIT_PROMPT_UNTRACKED}${indicators}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [[ "$line" == (((A|M|D|T) )|(AD|AM|AT|MM))\ * ]] && [[ added != 'yes' ]]; then
|
|
|
|
if [[ "$line" == (((A|M|D|T) )|(AD|AM|AT|MM))\ * ]] && ! check-bool "$added"; then
|
|
|
|
added='yes'
|
|
|
|
added='yes'
|
|
|
|
indicators="${ZSH_THEME_GIT_PROMPT_ADDED}${indicators}"
|
|
|
|
indicators="${ZSH_THEME_GIT_PROMPT_ADDED}${indicators}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [[ "$line" == (( (M|T))|(AM|AT|MM))\ * ]] && [[ modified != 'yes' ]]; then
|
|
|
|
if [[ "$line" == (( (M|T))|(AM|AT|MM))\ * ]] && ! check-bool "$modified"; then
|
|
|
|
modified='yes'
|
|
|
|
modified='yes'
|
|
|
|
indicators="${ZSH_THEME_GIT_PROMPT_MODIFIED}${indicators}"
|
|
|
|
indicators="${ZSH_THEME_GIT_PROMPT_MODIFIED}${indicators}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [[ "$line" == R\ \ * ]] && [[ renamed != 'yes' ]]; then
|
|
|
|
if [[ "$line" == R\ \ * ]] && ! check-bool "$renamed"; then
|
|
|
|
renamed='yes'
|
|
|
|
renamed='yes'
|
|
|
|
indicators="${ZSH_THEME_GIT_PROMPT_RENAMED}${indicators}"
|
|
|
|
indicators="${ZSH_THEME_GIT_PROMPT_RENAMED}${indicators}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [[ "$line" == ( D|AD)\ * ]] && [[ deleted != 'yes' ]]; then
|
|
|
|
if [[ "$line" == ( D|AD)\ * ]] && ! check-bool "$deleted"; then
|
|
|
|
deleted='yes'
|
|
|
|
deleted='yes'
|
|
|
|
indicators="${ZSH_THEME_GIT_PROMPT_DELETED}${indicators}"
|
|
|
|
indicators="${ZSH_THEME_GIT_PROMPT_DELETED}${indicators}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [[ "$line" == UU\ * ]] && [[ unmerged != 'yes' ]]; then
|
|
|
|
if [[ "$line" == UU\ * ]] && ! check-bool "$unmerged"; then
|
|
|
|
unmerged='yes'
|
|
|
|
unmerged='yes'
|
|
|
|
indicators="${ZSH_THEME_GIT_PROMPT_UNMERGED}${indicators}"
|
|
|
|
indicators="${ZSH_THEME_GIT_PROMPT_UNMERGED}${indicators}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|