Himanshu Chhetri home

My Termtter plugin to post output as a gist.

20 December 2009

Termtter is the best Twitter client I have ever used for the command line.

It was created by @jugyo and has many useful commands that let you perform common Twitter operations. The best introduction I found for this unique twitter client is the Rubyconf 2009 presentation by @ujm

View more presentations from ujihisa.

However, the other really neat aspect about Termtter is the support for plugins! Since Termtter it written in Ruby, the plugins are simply code. The official Termtter website has a page describing the three different types of plugins which are: commands, hooks and filters.

I decided to create a simple plugin that adds a “gist” command in Termtter to run a command and then post the output to Gist (Github.com’s pastebin) The plugin uses @defunkt’s http://github.com/defunkt/gist and thus needs to be installed before the plugin works.

My first attempt at writing a simple plugin for Termtter was a very pleasant experience and only a quick hack:

The plugin in action:


blog comments powered by Disqus Fork me on GitHub