summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kilmer <109920997+ChristianKilmer@users.noreply.github.com>2025-09-23 05:57:21 -0400
committerGitHub <noreply@github.com>2025-09-23 11:57:21 +0200
commit763aab3271f4bbe3b41caabd28088b7fb31abae4 (patch)
tree68a7ab175a0b42d7f8874f192a4e8b6b0ac4c396
parent58cba614652ce8115138fef5c7d80c8a0c0a58f4 (diff)
downloadzsh-763aab3271f4bbe3b41caabd28088b7fb31abae4.tar.gz
zsh-763aab3271f4bbe3b41caabd28088b7fb31abae4.tar.bz2
zsh-763aab3271f4bbe3b41caabd28088b7fb31abae4.zip
fix(command-not-found): support latest homebrew (#13327)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
-rw-r--r--plugins/command-not-found/command-not-found.plugin.zsh4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/command-not-found/command-not-found.plugin.zsh b/plugins/command-not-found/command-not-found.plugin.zsh
index c741e18a2..85d778004 100644
--- a/plugins/command-not-found/command-not-found.plugin.zsh
+++ b/plugins/command-not-found/command-not-found.plugin.zsh
@@ -4,6 +4,10 @@ for file (
# Arch Linux. Must have pkgfile installed: https://wiki.archlinux.org/index.php/Pkgfile#Command_not_found
/usr/share/doc/pkgfile/command-not-found.zsh
# Homebrew: https://github.com/Homebrew/homebrew-command-not-found
+ /opt/homebrew/Library/Homebrew/command-not-found/handler.sh
+ /usr/local/Homebrew/Library/Homebrew/command-not-found/handler.sh
+ /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/command-not-found/handler.sh
+ # Old homebrew implementation
/opt/homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh
/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh