ZSHFiles/custom/functions/gitsubrepo

2 lines
137 B
Plaintext

find * -maxdepth 1 -mindepth 1 -type d -name ".git" -exec sh -c '(DIR={}; DIR=${DIR%%.git} && cd $DIR && echo $DIR && git status -s)' \;