This is a shell script version of the Node.js version created by mbostock.
Place it in a directory in your PATH and set the permissions.
chmod u+x clone-all-gistsIt will first collect all of the IDs for your Gists to Gists.txt and then create a directory named Gists and clone each Gist to that directory.
The environment variables should be set when running this command. These can be set in the shell with ~/.zshrc. Using an access token will allow for a higher rate limit.
GITHUB_USERNAMEGITHUB_API_READ_ACCESS_TOKEN