Last active
December 14, 2015 18:39
-
-
Save nvk/5131422 to your computer and use it in GitHub Desktop.
Open github project and issues page
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
# Open github project and issues page | |
# PS: I'm not a dev, I'm sure there is better ways of writing this. | |
# use at will, by @nvk | |
gop(){ | |
url=$(git remote -v | perl -n -e 'm{:(.+?).git} && print $1,"\n"' | uniq ); | |
open "http://github.com/$url" | |
} | |
gip(){ | |
url=$(git remote -v | perl -n -e 'm{:(.+?).git} && print $1,"\n"' | uniq ); | |
open "http://github.com/$url/issues" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
open `git remote -v | sed 's/^.*:/http:\/\/github.com\//' | sed 's/.git .*//' | head -1`