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
Thanks for posting this. I have been neglecting Services as a useful tool, but this seemed simple enough to follow. Anyway, I'm commenting because this didn't exactly work for me. For whatever reason, the bash environment that gets called from this doesn't have my Ruby environment set up, maybe because I'm using RVM. Anyhow, the following seems to work for me: