mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
show new commits in submodules
This commit is contained in:
parent
0d271a1541
commit
b39770cc89
1 changed files with 4 additions and 1 deletions
|
|
@ -46,6 +46,9 @@ function git_remotes() {
|
|||
done
|
||||
pushed=$(git log --oneline origin/master..HEAD | wc -l )
|
||||
[ "$pushed" -gt "0" ] && remotes+=" ↑:"$pushed
|
||||
# submodules commints
|
||||
submod=$(git status | grep "new commits" | wc -l)
|
||||
[ "$submod" -gt "0" ] && remotes+=" _:"$submod
|
||||
fi
|
||||
fi
|
||||
echo $remotes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue