Skip to content

Instantly share code, notes, and snippets.

@ZoolWay
Created May 25, 2020 06:10
Show Gist options
  • Save ZoolWay/2c46bc62cea0e6a311c1e8d1bdca2eba to your computer and use it in GitHub Desktop.
Save ZoolWay/2c46bc62cea0e6a311c1e8d1bdca2eba to your computer and use it in GitHub Desktop.
Bash Aliases to run over multiple working copies
gitall() {
find . -mindepth 2 -maxdepth 2 -name .git -type d -execdir echo \; -execdir pwd \; -execdir git $1 \;
}
mvnall() {
find . -mindepth 2 -maxdepth 2 -name pom.xml -type f -execdir echo \; -execdir pwd \; -execdir mvn $1 \;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment