public
Last active

Open github project and issues page

  • Download Gist
gop-gip.zsh
Shell
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`

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.