prezto/modules/command-not-found
Indrajit Raychaudhuri 2286662b80 command-not-found: Restore idiomatic homebrewed handler loading on MacOS
As is the convention in prezto, we cache the command-not-found handler to
avoid incurring the performance penalty of loading ruby interpreter on
every call. This restores the 'Homebrew way' of loading command-not-found
handler.

Further, the formally recommended command lookup mechanism in Homebrew
(viz., `brew command command-not-found-init`) is ruby based and is super
slow. To avoid performance penalty, we `find` it ourselves from
`TAP_DIRECTORY` defined internally in Homebrew.

This also reinstates support for custom taps or non-standard Homebrew location.
2018-12-11 08:10:37 -06:00
..
init.zsh command-not-found: Restore idiomatic homebrewed handler loading on MacOS 2018-12-11 08:10:37 -06:00
README.md doc: More copyediting and formatting for consistency 2018-10-12 12:04:49 -05:00

Command-Not-Found

When you try to use a command that is not available locally, searches the package manager for a package offering that command and suggests the proper install command.

Debian and Arch Linux based distributions use the command-not-found tool.

macOS uses Homebrew's command-not-found clone. Note that you also need to follow the instructions to tap the command-not-found homebrew repository.

Authors

The authors of this module should be contacted via the issue tracker.