Skip to content

Instantly share code, notes, and snippets.

@senmu
Created April 30, 2015 19:18
Show Gist options
  • Select an option

  • Save senmu/5c49c4f3138bce85701e to your computer and use it in GitHub Desktop.

Select an option

Save senmu/5c49c4f3138bce85701e to your computer and use it in GitHub Desktop.
Alias to open current repo on GitHub in a browser
alias gho="git config --get remote.origin.url | ruby -ne 'puts %{https://github.com/#{\$_.split(/.com[\:\/]/)[-1].gsub(\".git\",\"\")}}' | xargs open"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment