Created
July 17, 2023 10:58
-
-
Save epilys/f7e845579e05d3ece6e96fe5638ba752 to your computer and use it in GitHub Desktop.
Get descriptions of vim-plugged plugins from their github repo
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
#!/bin/zsh | |
for rep in $(cat ~/.config/nvim/init.vim|grep "^Plug '[^~:]\+" | sed "s/^Plug '\([^'\]*\)[/]\([^']\+\)'.*$/\1\/\2/p" | sort -d | uniq); do | |
echo -n "$rep " && | |
curl --silent -L \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
https://api.github.com/repos/$rep | jq ".description"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment