Created
March 30, 2012 12:29
-
-
Save walm/2251168 to your computer and use it in GitHub Desktop.
Simple git.io tool (GitHub URL shortener)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
URL=`curl -i http://git.io -F "url=$1" | grep Location | sed -e 's/Location: //g'` | |
echo "$URL" | pbcopy | |
echo "$URL" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install with