Skip to content

Instantly share code, notes, and snippets.

@tylorr
Last active January 18, 2017 08:20
Show Gist options
  • Save tylorr/b769ba4d9cce6d76ff842e22a3601048 to your computer and use it in GitHub Desktop.
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
# 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