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
[…] that didn’t take long. In an earlier post, I remarked that with command line support for Gist, the git powered pastebin service, TextMate […]
[…] 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