Last active
January 18, 2017 08:20
-
-
Save tylorr/b769ba4d9cce6d76ff842e22a3601048 to your computer and use it in GitHub Desktop.
Get remote github for each directory and convert to plug.vim format for usage in .vimrc
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
# produces: Plug 'user/repo' | |
for d in ./*/ ; do (cd "$d" && git config --get remote.origin.url | sed -r "s@.*github\.com[:/](.+/.+)\.git@Plug '\1'@"); done | sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment