Last active
August 29, 2015 14:11
-
-
Save morganestes/7777d225fde443943ac4 to your computer and use it in GitHub Desktop.
Bash script to shorten a GitHub link using Git.io
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
| #!/usr/bin/env bash | |
| echo `curl -s -i http://git.io -F "url=$1" | tr -d '\r' | sed -En 's/^Location: (.*)/\1/p'` |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uses the GitHub URL shortener to make
git.ioshort links from a bash prompt.