1.1.1 • Published 7 years ago

down-the-rabbit-hole v1.1.1

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

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
1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago