Skip to content

Instantly share code, notes, and snippets.

@humidair1999
Created April 9, 2015 18:39
Show Gist options
  • Save humidair1999/f60d5eba3a6112a795f1 to your computer and use it in GitHub Desktop.
Save humidair1999/f60d5eba3a6112a795f1 to your computer and use it in GitHub Desktop.
Open the current repo's page in your browser
#!/usr/bin/env bash
# relies on OS X's version of `open`
open "http://github.com/$(git remote -v | head -1 | sed -E 's/.*git@github.com:(.*)\.git.*/\1/')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment