# $ tweet Hi mom! # # Put this in ~/.config/fish/config.fish or wherever. # If it doesn't work, make sure your ~/.netrc is right # # (Thanks to @anildigital and @grundprinzip for curl-fu) # (Thanks to @defunkt for the original bash function) function tweet curl -n -d status="$argv" https://twitter.com/statuses/update.xml --insecure > /dev/null echo "tweet'd" end