Short URLs from bash

A days ago, I was reconciled with Identi.ca’s XMMP bot since I’m using Mcabber (a command line client for Jabber).So, I need to short URLs to post in it but I didn’t using anymore Gwibber. And bash scripts are here!