Skip to content

sindresorhus/gh-home

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

gh-home

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]

  Options
	  --prs -p	   Open the pull requests of a GitHub repo
	  --issues -i  Open the issues of a GitHub repo

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

Tips

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

You can also use the official GitHub CLI instead:

$ gh alias set home "repo view --web"
$ gh home

Related

  • npm-home - Open the npm page of a package

About

Open the GitHub page of the given or current directory repo

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published