mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 18:38:00 +00:00
2286662b80
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. |
||
---|---|---|
.. | ||
init.zsh | ||
README.md |
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.