down-the-rabbit-hole
v1.1.1
Published
Find and follow symlinks off $PATH
Downloads
11
Readme
Rabbit-hole
Find and follow symlinks off $PATH
Installation
npm install -g down-the-rabbit-hole
Usage
Executables higher-up take precedence on $PATH
.
Find an executable on $PATH
$ rh find brew
├─ /usr/local/bin
│ └─ brew: /usr/local/Homebrew/bin/brew
├─ /usr/bin
├─ /bin
├─ /usr/sbin
└─ /sbin
Show the whole $PATH tree
$ rh
├─ /usr/local/bin
│ ├─ ...
│ ├─ brew: /usr/local/Homebrew/bin/brew
│ ├─ ...
├─ /usr/bin
│ ├─ ...
├─ /bin
│ ├─ ...
├─ /usr/sbin
│ ├─ ...
└─ /sbin
├─ ...
Show directories on $PATH only
$ rh --path-only # or -p
├─ /usr/local/bin
├─ /usr/bin
├─ /bin
├─ /usr/sbin
└─ /sbin
Hide symlink source
$ rh --hide-links # or -h
├─ /usr/local/bin
...
│ ├─ brew
...
├─ /usr/bin
...
Provide a path
$ rh find jest --path='./node_modules/.bin'
└─ /path/to/node_modules/.bin
└─ jest: /path/to/node_modules/jest-cli/bin/jest.js