my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.2 KiB

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