Skip to content

Instantly share code, notes, and snippets.

@CatTail
Last active January 9, 2017 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CatTail/09a412fa829420b92a50ff89ca648a7f to your computer and use it in GitHub Desktop.
Save CatTail/09a412fa829420b92a50ff89ca648a7f to your computer and use it in GitHub Desktop.
Add all exsiting vim bundle to gitmodules
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