Skip to content

Instantly share code, notes, and snippets.

@maedoc
Created August 14, 2013 17:17
Show Gist options
  • Save maedoc/6233208 to your computer and use it in GitHub Desktop.
Save maedoc/6233208 to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir old_bundles
for dir in $(ls vim/bundle)
do
url=$(cat vim/bundle/$dir/.git/config | grep url | cut -d= -f2)
echo "found $url"
mv vim/bundle/$dir old_bundle
git submodule add $url vim/bundle/$dir
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment