Skip to content

Instantly share code, notes, and snippets.

@walm
Created March 30, 2012 12:29
Show Gist options
  • Save walm/2251168 to your computer and use it in GitHub Desktop.
Save walm/2251168 to your computer and use it in GitHub Desktop.
Simple git.io tool (GitHub URL shortener)
#!/bin/sh
URL=`curl -i http://git.io -F "url=$1" | grep Location | sed -e 's/Location: //g'`
echo "$URL" | pbcopy
echo "$URL"
@walm
Copy link
Author

walm commented Mar 30, 2012

Install with

curl -L http://git.io/Q-_oFw > ~/bin/git.io && chmod +x ~/bin/git.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment