Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Open github project and issues page

View gop-gip.zsh
1 2 3 4 5 6 7 8 9 10 11 12
# 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"
}
open `git remote -v | sed 's/^.*:/http:\/\/github.com\//' | sed 's/.git .*//' | head -1`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.