Created
October 27, 2012 20:25
-
-
Save jtallant/3966010 to your computer and use it in GitHub Desktop.
Helper Function for tweeting with twurl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
} |
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
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