⚡📄 🥯A mini Twitter for your pinned repositories.
A mini Twitter for your pinned repositories.
If you haven’t already, you need to create a new GitHub OAuth2 Token with the gist
permission. You can add a token to your profile here.
Finally, you need to add this token to your environment variables.
echo "AUTOGIST_TOKEN <your-token-here>" >> ~/.bash_profile
source ~/.bash_profile
echo "AUTOGIST_TOKEN <your-token-here>" >> ~/.bashrc
source ~/.bashrc
To create a new gist, call autogist
with the description (-d
) and content (-c
) of your gist.
npx autogist -d "gist description" -c "gist content"
To update a gist, just specify the id (-g
) of your gist.
npx autogist -d "gist description" -c "updated content" -g <my-gist-id>