Skip to content

Instantly share code, notes, and snippets.

@asenchi
Forked from defunkt/.bashrc
Created July 8, 2009 18:56
Show Gist options
  • Save asenchi/143090 to your computer and use it in GitHub Desktop.
Save asenchi/143090 to your computer and use it in GitHub Desktop.
# $ tweet Hi mom!
#
# Put this in ~/.bashrc or wherever.
# If it doesn't work, make sure your ~/.netrc is right
#
# (Thanks to @anildigital for curl-fu)
function tweet {
curl -n -d status="$*" http://twitter.com/statuses/update.xml &> /dev/null
echo "tweet'd"
}
# put this in ~/.netrc
machine twitter.com
login USERNAME
password PASSWORD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment