Permalink
Browse files

Fixed bug in git scm plugin where the prompt info would not be displa…

…yed in subdirs.
  • Loading branch information...
1 parent 8d4615e commit fe4504cef92440f36b7fdcad9be6e7365bd89878 @RobinRamael committed Feb 11, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 scm/git.scm.zsh
View
4 scm/git.scm.zsh
@@ -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
-}
+}

0 comments on commit fe4504c

Please sign in to comment.