Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/gh-home
Open the GitHub page of the given or current directory repo
https://github.com/sindresorhus/gh-home
Last synced: 4 days ago
JSON representation
Open the GitHub page of the given or current directory repo
- Host: GitHub
- URL: https://github.com/sindresorhus/gh-home
- Owner: sindresorhus
- License: mit
- Created: 2016-01-12T17:36:33.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2024-07-21T11:57:59.000Z (6 months ago)
- Last Synced: 2025-01-15T07:45:59.535Z (11 days ago)
- Language: JavaScript
- Homepage:
- Size: 18.6 KB
- Stars: 191
- Watchers: 8
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- awesome-npm - gh-home - Open the GitHub page of a package. (Packages / Other)
- awesome-nodejs-cn - gh-home - 打开当前目录下项目的 GitHub 主页 (包 / 命令行程序)
- awesome-nodejs-cn - gh-home - **star:192** 在当前目录中打开 GitHub 的仓库页面 (包 / 命令行程序)
- awesome-npm - gh-home - Open the GitHub page of a package. (Packages / Other)
- awesome-nodejs - gh-home - Open the GitHub page of the repo in the current directory. (Packages / Command-line apps)
- awesome-nodejs - gh-home - Open the GitHub page of the given or current directory repo - ★ 98 (Command-line apps)
- awesome-nodejs-cn - gh-home - 在当前目录中打开仓库的GitHub页面. (目录 / 命令行应用)
- awesome-nodejs - gh-home - 打开给定或当前仓库的GitHub页面 (Uncategorized / Uncategorized)
- jimsghstars - sindresorhus/gh-home - Open the GitHub page of the given or current directory repo (JavaScript)
README
# 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
```sh
npm install --global gh-home
```## Usage
```
$ gh-home --helpUsage
$ gh-home [repo | user/repo]Options
--prs -p Open the pull requests of a GitHub repo
--issues -i Open the issues of a GitHub repoExamples
$ 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](https://github.com/cli/cli) instead:
```
$ gh alias set home "repo view --web"
$ gh home
```## Related
- [npm-home](https://github.com/sindresorhus/npm-home) - Open the npm page of a package