Created
September 9, 2011 22:55
-
-
Save aheckmann/1207539 to your computer and use it in GitHub Desktop.
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
alias github='__git_branch_=$(git symbolic-ref -q HEAD);__git_branch_=${__git_branch_/#refs\/heads/};__git_repo_=$(git config --get remote.origin.url);__git_repo_=$ {__git_repo_/[email protected]:/};__git_repo_=${__git_repo_/%.git/};open "https://github.com/$__git_repo_/tree$__git_branch_";' |
opens the current repo on github
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suck at bash but it works.