down-the-rabbit-hole

1.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i down-the-rabbit-hole

Weekly Downloads

0

Version

1.1.1

License

ISC

Last publish

Collaborators

  • rasphilco