9f84ba085425800dee0b4e391d8cf377806dc75e
- Author
- Marc Cornellà <marc@mcornella.com>
- Committer
- Marc Cornellà <marc@mcornella.com>
- Date
Message
feat(command-not-found): add support for Homebrew on Linux
Fixes #11151
Diff
1diff --git a/plugins/command-not-found/command-not-found.plugin.zsh b/plugins/command-not-found/command-not-found.plugin.zsh
2index cb8a8989c53602ecc1b0bacf07d665f3b4163f62..c741e18a273765f1a33a7f4d5426d00909fd019e 100644
3--- a/plugins/command-not-found/command-not-found.plugin.zsh
4+++ b/plugins/command-not-found/command-not-found.plugin.zsh
5@@ -3,9 +3,10 @@
6 for file (
7 # Arch Linux. Must have pkgfile installed: https://wiki.archlinux.org/index.php/Pkgfile#Command_not_found
8 /usr/share/doc/pkgfile/command-not-found.zsh
9- # macOS (M1 and classic Homebrew): https://github.com/Homebrew/homebrew-command-not-found
10+ # Homebrew: https://github.com/Homebrew/homebrew-command-not-found
11 /opt/homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh
12 /usr/local/Homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh
13+ /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh
14 ); do
15 if [[ -r "$file" ]]; then
16 source "$file"