6bf7f39345db64e5c37a5c5ac2e8189df0f8a8c6

Author
Yuanxuan Wang <zellux@gmail.com>
Committer
ncanceill <nicolas.canceill@ens-cachan.org>
Date

Message

Steeef theme checks untracked files instead of directories

Diff

 1diff --git a/themes/steeef.zsh-theme b/themes/steeef.zsh-theme
 2index e0080b8a526837b3cf75c3d3d7e5f13dc3348201..9d27410b861694e5c414ececefa3094aaa1bf467 100644
 3--- a/themes/steeef.zsh-theme
 4+++ b/themes/steeef.zsh-theme
 5@@ -81,7 +81,7 @@ add-zsh-hook chpwd steeef_chpwd
 6 function steeef_precmd {
 7     if [[ -n "$PR_GIT_UPDATE" ]] ; then
 8         # check for untracked files or updated submodules, since vcs_info doesn't
 9-        if git ls-files --other --exclude-standard --directory 2> /dev/null | grep -q "."; then
10+        if git ls-files --other --exclude-standard 2> /dev/null | grep -q "."; then
11             PR_GIT_UPDATE=1
12             FMT_BRANCH="(%{$turquoise%}%b%u%c%{$hotpink%}●${PR_RST})"
13         else