Skip to content

Instantly share code, notes, and snippets.

@epilys
Created July 17, 2023 10:58
Show Gist options
  • Save epilys/f7e845579e05d3ece6e96fe5638ba752 to your computer and use it in GitHub Desktop.
Save epilys/f7e845579e05d3ece6e96fe5638ba752 to your computer and use it in GitHub Desktop.
Get descriptions of vim-plugged plugins from their github repo
#!/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