3.0.0 • Published 8 years ago
path-rabbit-hole v3.0.0
Rabbit-hole
Find any executable on $PATH and view its symlink chain
Installation
npm install -g path-rabbit-holeUsage
Executables higher-up in the tree take precedence on $PATH.
Show the $PATH tree
$ rh
├─ /usr/local/bin
├─ /usr/bin
├─ /bin
├─ /usr/sbin
└─ /sbinFind an executable on $PATH
$ rh brew
├─ /usr/local/bin
│ └─ brew
│ └─ /usr/local/Homebrew/bin/brew
├─ /usr/bin
├─ /bin
├─ /usr/sbin
└─ /sbinProvide a path to search through
$ rh jest --path='./node_modules/.bin'
└─ /path/to/node_modules/.bin
└─ jest
└─ /path/to/node_modules/jest-cli/bin/jest.jsFind all executables & symlinks on $PATH
$ rh --find-all # or -aFind all executables but hide symlinks
$ rh -a --hide-symlinks # or -h