Permalink
Browse files

Merge pull request #1159 from kristi/master

Steef theme - Improved git untracked file detection
  • Loading branch information...
robbyrussell committed Jun 22, 2012
2 parents 470e1a1 + 4d6b532 commit bf98a2d68bb18b34d8df52b25d9f04db0e12b6f0
Showing with 1 addition and 1 deletion.
  1. +1 −1 themes/steeef.zsh-theme
View
@@ -81,7 +81,7 @@ add-zsh-hook chpwd steeef_chpwd
function steeef_precmd {
if [[ -n "$PR_GIT_UPDATE" ]] ; then
# check for untracked files or updated submodules, since vcs_info doesn't
- if [[ ! -z $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then
+ if git ls-files --other --exclude-standard --directory 2> /dev/null | grep -q "."; then
PR_GIT_UPDATE=1
FMT_BRANCH="(%{$turquoise%}%b%u%c%{$hotpink%}●${PR_RST})"
else

0 comments on commit bf98a2d

Please sign in to comment.