ghwd
A simple command to open a GitHub URL in your browser that matches your
shell's current branch and working directory. Supports Mac, Linux, Cygwin
and Windows.
Install it
npm install ghwd --global
Use it
cd myapp
git checkout mybranch
cd some/dir
ghwd
ghwd foo.js
Use it faster
A g alias is created automatically to save you three keystrokes:
g foo.js
System Requirements
Requires the bash shell to run. Supports Mac, Linux, Cygwin and Windows by searching for one of the following openers, so other OSs may be supported as well: xdg-open, open,cygstart,start.
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
