Created
September 14, 2011 15:15
-
-
Save timuruski/1216842 to your computer and use it in GitHub Desktop.
A command line that walks vim/bundle directory and adds each git-submodule.
This file contains hidden or 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 | |
| find vim/bundle -name "config" | grep .git | while read d; do echo "submodule add " $(grep "url = " $d | awk '{print $3}') $(echo $d | sed -e "s/\.git\/config//") | xargs git; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment