Arch Linux's pkgfile has a command-not-found hook that you can source from your shell's startup file (.zshrc, .bashrc, or whatever). Does Homebrew have anything roughly equivalent to this?
Command Line – Does Homebrew Have a Command-Not-Found Hook?
command linehomebrew
Related Question
- MacOS – Tried to install gromacs 5.1.1 via homebrew, all commands are not found
- Apache2 not running on High Sierra without Homebrew
- Install Homebrew – Fixing Command Line Tools Recognition on macOS Mojave
- Does Homebrew Install Use SSL/TLS?
- Symlink Creation – How to Create a Symlink Pointing to a Variable Filepath
- Spctl “command not found” on Recovery start (mac OS Big Sierra)
Best Answer
Have a look at homebrew-command-not-found. The project tries to reproduce Ubuntu’s
command-not-found
for Homebrew users on OS X.