Skip to content

Instantly share code, notes, and snippets.

@jtallant
Created October 27, 2012 20:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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

This is a little helper function for using twurl to tweet from the command line. It's more convenient than the aliasing they provide.

Put it in your bash profile

https://github.com/marcel/twurl

@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