I (like many of you) spend most of my day in the console, and I wanted an easy way to be able to tweet about what I’m doing without opening a separate client. This used to be really simple when Twitter allowed Basic HTTP authentication but with their switch to OAuth, using cURL is a bit less straightforward. I created a gem called console_tweet.

To install it, just use:

# Install the application
$ gem install console_tweet
# Set up your OAuth credentials
$ twitter setup

Once you have it installed, you can tweet any time with:

$ twitter tweet 'hello world!'

Or pipe input directly in:

$ fortune | twitter tweet