Skip to content

Instantly share code, notes, and snippets.

@cahna
Last active March 3, 2017 11:13
Show Gist options
  • Save cahna/9908545 to your computer and use it in GitHub Desktop.
Save cahna/9908545 to your computer and use it in GitHub Desktop.
manage installed pathogen plugins as git submodules within dofiles repo
# cd into your dotfiles repo and run this to add all of your
# installed pathogen plugins as submodules of your dotfiles repo:
ls ~/.vim/bundle \
| xargs -I% echo "grep -m1 -oP 'https[^\ ]+' <(cd ~/.vim/bundle/% && git remote -v show)" \
| bash \
| xargs -n1 git submodule add
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment