Open the GitHub page of the given or current directory repo
JavaScript
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.editorconfig Add support for arguments May 18, 2017
.gitattributes
.gitignore
.travis.yml
cli.js
license init Jan 12, 2016
package.json
readme.md Add support for arguments May 18, 2017
test.js Add support for arguments May 18, 2017

readme.md

gh-home Build Status

Open the GitHub page of the given or current directory repo

It will attempt to open the upstream repo if there is one or the forked repo.

Install

$ npm install --global gh-home

Usage

$ gh-home --help

  Usage
    $ gh-home [repo | user/repo]

  Examples
    $ gh-home
    $ gh-home myrepo
    $ gh-home avajs/ava

Tip

Add alias gh=gh-home to your .zshrc/.bashrc, so that you can run it with $ gh instead.

Related

  • npm-home - Open the npm page of a package
  • gh-upstream - Open the GitHub page of the upstream remote for the repo in the current directory

License

MIT © Sindre Sorhus