Permalink
Browse files

Added a new function 'gitall' that will recursively apply a git comma…

…nd to all git repositories underneath .
  • Loading branch information...
1 parent 51125ef commit 1ca5d3c1138826fef62269b1ae76fd718be27056 @derekwyatt committed Mar 29, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 zshrc
View
10 zshrc
@@ -179,6 +179,16 @@ function ff
return 0
}
+function gitall
+{
+ find . -type d -a -name .git | while read d
+ do
+ local x=${d%.git}
+ echo ========= $x
+ (cd $x; git "$@")
+ done
+}
+
# Assorted
alias swps='find . -name .\*.sw[op]'
alias rmstd='xargs rm -vf'

0 comments on commit 1ca5d3c

Please sign in to comment.