From b39770cc89ab56a06d5fb4c01b37a15a08cd15ac Mon Sep 17 00:00:00 2001 From: JuanPablo Date: Fri, 2 Sep 2011 20:25:49 -0300 Subject: [PATCH] show new commits in submodules --- themes/pixelmuerto.zsh-theme | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/themes/pixelmuerto.zsh-theme b/themes/pixelmuerto.zsh-theme index 21694af7a..9fac1c2cb 100644 --- a/themes/pixelmuerto.zsh-theme +++ b/themes/pixelmuerto.zsh-theme @@ -45,7 +45,10 @@ function git_remotes() { fi done pushed=$(git log --oneline origin/master..HEAD | wc -l ) - [ "$pushed" -gt "0" ] && remotes+="↑:"$pushed + [ "$pushed" -gt "0" ] && remotes+=" ↑:"$pushed + # submodules commints + submod=$(git status | grep "new commits" | wc -l) + [ "$submod" -gt "0" ] && remotes+=" _:"$submod fi fi echo $remotes