Fixed bug in git scm plugin where the prompt info would not be displayed in subdirs.

This commit is contained in:
Robin Ramael 2011-02-11 09:09:00 +01:00
commit fe4504cef9

View file

@ -1,5 +1,5 @@
function scm_in_git_repo () {
if [[ -d .git ]]; then
if [ "$(git st 2>/dev/null)" ]; then
echo 1
fi
}
@ -19,4 +19,4 @@ scm_parse_git_dirty () {
else
echo "$ZSH_THEME_SCM_PROMPT_CLEAN"
fi
}
}