Last active
November 5, 2019 09:46
-
-
Save RoToRx88/48aa1dbbd7fba1b665896598c94c517d to your computer and use it in GitHub Desktop.
Execute arbitrary command into submodule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git submodule foreach --recursive --quiet pwd | xargs -P8 -I{} zsh -c "cd {} && $*" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment