- Install this gem: https://github.com/swdyh/gisty
- Create a new access token in GitHub: https://github.com/settings/tokens
- You only need the
gist
box ticked, nothing else necessary
- You only need the
- Set this:
export GISTY_DIR="$HOME/path/where/you/want/gists/saved"
- Set this:
export GISTY_ACCESS_TOKEN=xxxxxxxxxx
- Run this:
gisty sync
...now sit and wait for it to start cloning all your gists into the specified directory