CatTail
1/9/2017 - 6:07 AM

Add all exsiting vim bundle to gitmodules

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