Socket
Book a DemoInstallSign in
Socket

ghwd

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ghwd

Open the GitHub URL that matches your shell's current branch and working directory. Works for BitBucket and GitLab too.

latest
Source
npmnpm
Version
1.1.4
Version published
Maintainers
1
Created
Source

ghwd

A shell command to open a git URL in your browser that matches your shell's current branch and working directory. Works for GitHub, BitBucket, and GitLab repositories.

Runs on Mac, Linux, Cygwin, and Windows.

Install it

npm install ghwd --global

Use it

cd myapp
git checkout mybranch
cd some/dir

ghwd
# https://github.com/bozo/myapp/tree/mybranch/some/dir

ghwd foo.js
# https://github.com/bozo/myapp/tree/mybranch/some/dir/foo.js

Use it faster

A g alias is created automatically to save you three keystrokes:

g foo.js

System Requirements

Requires the bash or zsh shell to run. Supports Mac, Linux, Cygwin and Windows by searching for one of the following openers: xdg-open, open,cygstart,start.

Providers

ghwd supports git repos from the following providers:

  • github.com ssh, https and git: remotes
  • bitbucket.org ssh and https remotes
  • gitlab.com ssh and https remotes

See Also

If you are interested in further integration between your shell and Github, check out the hub project. It adds a git browse command which works much like this one, in addition to a number of other features.

License

ISC

octobiwan

Keywords

github

FAQs

Package last updated on 16 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts