4d6b532248fce0e71d762eb1ec3ef2ec8fcd5289

Author
Kristi <kristi.dev@gmail.com>
Committer
Kristi <kristi.dev@gmail.com>
Date

Message

add --directory flag

Diff

 1diff --git a/themes/steeef.zsh-theme b/themes/steeef.zsh-theme
 2index f22ce2719375ead781f6420d3255b7e1915004a2..312229e9f345d026cbc372eea13b4436ca470eb6 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 2> /dev/null | grep -q "."; then
10+        if git ls-files --other --exclude-standard --directory 2> /dev/null | grep -q "."; then
11             PR_GIT_UPDATE=1
12             FMT_BRANCH="(%{$turquoise%}%b%u%c%{$hotpink%}●${PR_RST})"
13         else