Skip to content

Instantly share code, notes, and snippets.

@semifor
Forked from perigrin/.bashrc
Created July 9, 2009 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save semifor/143950 to your computer and use it in GitHub Desktop.
Save semifor/143950 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
#
# The Perl version
tweet() {
perl -MNet::Twitter::Lite -E'say Net::Twitter::Lite->new(ssl=>1,netrc=>1)->update("@ARGV")->{id}' $*
}
# 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