Last active
June 10, 2020 12:57
-
-
Save ilsenem/208511d367c3a232226e to your computer and use it in GitHub Desktop.
Get short url to Github repo
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
# Place this in your .bashrc or .profile | |
# $: github <user> <repo> | |
github() { | |
curl -is https://git.io -F "url=https://github.com/$1/$2" | grep Location | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment