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
stinkymatt,
Agreed - something changed in the gist command line parsing since I wrote this original gist. However, I've also since moved to using QuickHub (from the Mac App Store) to manage my Github/Gists on the desktop and that includes a really good "Create Gist From Selection" service.