Skip to content

Command Line Gist

As I posted earlier, gist is a Git powered pastebin service. Very handy. Handier still would be a command line interface to gist. Thanks to Github’s own Chris Wanstrath, aka defunkt, a command line interface with gist is now a reality.

To install:

curl http://github.com/defunkt/gist/tree/master%2Fgist.rb?raw=true > gist &&
chmod 755 gist &&
sudo mv gist /usr/local/bin/gist

Some usage examples:

cat file.txt | gist
echo hi | gist
gist 1234 > something.txt

Using gist from within TextMate should now be trivial.

{ 2 } Trackbacks

  1. Excursus : Gist-ing from TextMate | November 26, 2008 at 6:41 pm | Permalink

    […] that didn’t take long. In an earlier post, I remarked that with command line support for Gist, the git powered pastebin service, TextMate […]

  2. Gist, um pastebin melhorado | February 1, 2010 at 11:56 pm | Permalink

    […] que é mais legal é uma outra postagem que li, sobre utilizar o Gist na linha de comando. Observe: cat file.txt | gist echo hi | gist gist 1234 […]

Post a Comment

You must be logged in to post a comment.
FireStats icon Powered by FireStats