763aab3271f4bbe3b41caabd28088b7fb31abae4
- Author
- Christian Kilmer <109920997+ChristianKilmer@users.noreply.github.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
fix(command-not-found): support latest homebrew (#13327)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
Diff
1diff --git a/plugins/command-not-found/command-not-found.plugin.zsh b/plugins/command-not-found/command-not-found.plugin.zsh
2index c741e18a273765f1a33a7f4d5426d00909fd019e..85d778004bf2c9cb6e604fe8f8cd676a4bc3d559 100644
3--- a/plugins/command-not-found/command-not-found.plugin.zsh
4+++ b/plugins/command-not-found/command-not-found.plugin.zsh
5@@ -4,6 +4,10 @@ for file (
6 # Arch Linux. Must have pkgfile installed: https://wiki.archlinux.org/index.php/Pkgfile#Command_not_found
7 /usr/share/doc/pkgfile/command-not-found.zsh
8 # Homebrew: https://github.com/Homebrew/homebrew-command-not-found
9+ /opt/homebrew/Library/Homebrew/command-not-found/handler.sh
10+ /usr/local/Homebrew/Library/Homebrew/command-not-found/handler.sh
11+ /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/command-not-found/handler.sh
12+ # Old homebrew implementation
13 /opt/homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh
14 /usr/local/Homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh
15 /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh