summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2018-11-03 05:23:23 +0300
committerDominik Ritter <dritter03@googlemail.com>2018-11-03 05:23:23 +0300
commitc3f9d04354b53dd88bcaff790fca371b810054d6 (patch)
treea71d78d3f3357ffde3c4663b4b566f9f8633a957 /functions
parent44b4b669258f0854e17e439337a8a8fdf1dea5df (diff)
When checking for untracked or modified files, take submodules into account
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/vcs.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/vcs.zsh b/functions/vcs.zsh
index 6cc467d7..3b3b938f 100755
--- a/functions/vcs.zsh
+++ b/functions/vcs.zsh
@@ -8,7 +8,7 @@
set_default POWERLEVEL9K_VCS_SHOW_SUBMODULE_DIRTY false
function +vi-git-untracked() {
- if [[ "$POWERLEVEL9K_VCS_SHOW_SUBMODULE_DIRTY" == "true" && "$(command git submodule foreach 'git ls-files --others --exclude-standard')" != "" ]]; then
+ if [[ "$POWERLEVEL9K_VCS_SHOW_SUBMODULE_DIRTY" == "true" && "$(command git submodule foreach --quiet --recursive 'git ls-files --others --exclude-standard')" != "" ]]; then
hook_com[unstaged]+=" $(print_icon 'VCS_UNTRACKED_ICON')"
VCS_WORKDIR_HALF_DIRTY=true
elif [[ "$(command git ls-files --others --exclude-standard)" != "" ]]; then