Skip to content

Instantly share code, notes, and snippets.

@davydovanton
Created July 8, 2014 13:54
Show Gist options
  • Save davydovanton/dfd90a973e0a73347404 to your computer and use it in GitHub Desktop.
Save davydovanton/dfd90a973e0a73347404 to your computer and use it in GitHub Desktop.
Convert pathogen plugins to vundle
for i in */.; do
cd $i
repo=$(git remote show origin | grep 'Fetch URL:')
re="Fetch URL: https://github.com/(.+)"
if [[ $repo =~ $re ]]; then
var="$var\nPlugin '${BASH_REMATCH[1]}'"
fi
cd -
done
echo -e "$var"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment