Skip to content

Instantly share code, notes, and snippets.

@jtallant
Created October 27, 2012 20:25
Show Gist options
  • Save jtallant/3966010 to your computer and use it in GitHub Desktop.
Save jtallant/3966010 to your computer and use it in GitHub Desktop.
Helper Function for tweeting with twurl
# Helper function for tweeting via twurl
# You must have the twurl Ruby gem installed and configured https://github.com/marcel/twurl
# This function goes in your bash profile
# Usage: tweet "This is a command line tweet"
function tweet {
twurl -q -d "status=$1" /1/statuses/update.xml
}
@jtallant
Copy link
Author

First you have to install and configure twurl. It's easy.

After that paste this function into your bash profile. Restart your terminal and try the example.

tweet "This is a command line tweet"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment