|
@@ -15,12 +15,12 @@ parse_git_dirty() {
|
|
if [[ $POST_1_7_2_GIT -gt 0 ]]; then
|
|
if [[ $POST_1_7_2_GIT -gt 0 ]]; then
|
|
SUBMODULE_SYNTAX="--ignore-submodules=dirty"
|
|
SUBMODULE_SYNTAX="--ignore-submodules=dirty"
|
|
fi
|
|
fi
|
|
- if [[ "$DISABLE_UNTRACKED_FILES_DIRTY" != "true" ]]; then
|
|
|
|
- GIT_STATUS=$(git status -s ${SUBMODULE_SYNTAX} 2> /dev/null | tail -n1)
|
|
|
|
- else
|
|
|
|
|
|
+ if [[ "$DISABLE_UNTRACKED_FILES_DIRTY" == "true" ]]; then
|
|
GIT_STATUS=$(git status -s ${SUBMODULE_SYNTAX} -uno 2> /dev/null | tail -n1)
|
|
GIT_STATUS=$(git status -s ${SUBMODULE_SYNTAX} -uno 2> /dev/null | tail -n1)
|
|
|
|
+ else
|
|
|
|
+ GIT_STATUS=$(git status -s ${SUBMODULE_SYNTAX} 2> /dev/null | tail -n1)
|
|
fi
|
|
fi
|
|
- if [[ -n $(git status -s ${SUBMODULE_SYNTAX} -uno 2> /dev/null) ]]; then
|
|
|
|
|
|
+ if [[ -n $GIT_STATUS ]]; then
|
|
echo "$ZSH_THEME_GIT_PROMPT_DIRTY"
|
|
echo "$ZSH_THEME_GIT_PROMPT_DIRTY"
|
|
else
|
|
else
|
|
echo "$ZSH_THEME_GIT_PROMPT_CLEAN"
|
|
echo "$ZSH_THEME_GIT_PROMPT_CLEAN"
|