1 # command-not-found plugin
3 This plugin uses the command-not-found package for zsh to provide suggested packages to be installed if a command cannot be found.
5 To use it, add `command-not-found` to the plugins array of your zshrc file:
8 plugins=(... command-not-found)
11 An example of how this plugin works in Ubuntu:
14 The program 'mutt' can be found in the following packages:
18 Try: sudo apt install <selected package>
21 ### Supported platforms
23 It works out of the box with the command-not-found packages for:
25 - [Ubuntu](https://www.porcheron.info/command-not-found-for-zsh/)
26 - [Debian](https://packages.debian.org/search?keywords=command-not-found)
27 - [Arch Linux](https://wiki.archlinux.org/index.php/Pkgfile#Command_not_found)
28 - [macOS (Homebrew)](https://github.com/Homebrew/homebrew-command-not-found)
29 - [Fedora](https://fedoraproject.org/wiki/Features/PackageKitCommandNotFound)
30 - [NixOS](https://github.com/NixOS/nixpkgs/tree/master/nixos/modules/programs/command-not-found)
31 - [Termux](https://github.com/termux/command-not-found)
32 - [SUSE](https://www.unix.com/man-page/suse/1/command-not-found/)
34 You can add support for other platforms by submitting a Pull Request.