Skip to content

Instantly share code, notes, and snippets.

@alsibir
Forked from rwilcox/services.markdown
Created October 15, 2018 10:51
Show Gist options
  • Save alsibir/369c54de96ec656fa494c3542a1f37bb to your computer and use it in GitHub Desktop.
Save alsibir/369c54de96ec656fa494c3542a1f37bb to your computer and use it in GitHub Desktop.
How to create a new gist from OS X Service

How to create a Public Gist Service:

Step 0: Open Automator, New Service.

Step 1: Drag out Run Shell Script action. Pass Input to STDIN

Step 2: This code:

open `gist`

This assumes you have the gist command line client installed (gem install gist), and your Github username and token set up in git config

My blog entry on the topic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment