Created
April 2, 2012 14:50
-
-
Save torsten/2284028 to your computer and use it in GitHub Desktop.
zsh alias for GitHub's URL shortener
This file contains 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
# Usage: git.io GITHUB-URL | |
# Based on https://github.com/blog/985-git-io-github-url-shortener | |
__make_git_io() { | |
curl -i http://git.io -F "url=$1" | |
} | |
alias git.io=__make_git_io |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment