Skip to content

Instantly share code, notes, and snippets.

@nvk
Last active December 14, 2015 18:39
Show Gist options
  • Save nvk/5131422 to your computer and use it in GitHub Desktop.
Save nvk/5131422 to your computer and use it in GitHub Desktop.
Open github project and issues page
# 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"
}
@doc-hex
Copy link

doc-hex commented Mar 11, 2013

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