Last active
January 9, 2017 06:08
-
-
Save CatTail/09a412fa829420b92a50ff89ca648a7f to your computer and use it in GitHub Desktop.
Add all exsiting vim bundle to gitmodules
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
plugins=$(find . -type d -d 1 | tail -n +3) | |
for plugin in $plugins; do | |
echo plugin: $plugin | |
cd $plugin | |
repo=$(git remote -v | head -n 1 | cut -f 2 | cut -f 1 -d ' ') | |
echo repo: $repo | |
cd .. | |
git submodule add $repo | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment