MiniScripts/mk_pasteboard_tinyurl.sh
2009-12-21 22:35:49 +01:00

7 lines
231 B
Bash
Executable file

#!/bin/sh
# mk_pasteboard_tinyurl.sh takes a url from the message buffer and
# turns it to a TinyURL which its writes back to it
curl -s http://tinyurl.com/api-create.php?url=`pbpaste` | pbcopy
growlnotify "TinyURL" -m `pbpaste`