summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Cornellà <marc@mcornella.com>2023-10-19 20:47:26 +0200
committerMarc Cornellà <marc@mcornella.com>2023-10-19 20:47:26 +0200
commit9f84ba085425800dee0b4e391d8cf377806dc75e (patch)
treed640ea32ec0bb8824e3bdf984d4cc7db2ae54076
parentd082d87580f05cca524c546d54eb8009cf8bb10c (diff)
downloadzsh-9f84ba085425800dee0b4e391d8cf377806dc75e.tar.gz
zsh-9f84ba085425800dee0b4e391d8cf377806dc75e.tar.bz2
zsh-9f84ba085425800dee0b4e391d8cf377806dc75e.zip
feat(command-not-found): add support for Homebrew on Linux
Fixes #11151
-rw-r--r--plugins/command-not-found/command-not-found.plugin.zsh3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/command-not-found/command-not-found.plugin.zsh b/plugins/command-not-found/command-not-found.plugin.zsh
index cb8a8989c..c741e18a2 100644
--- a/plugins/command-not-found/command-not-found.plugin.zsh
+++ b/plugins/command-not-found/command-not-found.plugin.zsh
@@ -3,9 +3,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
- # macOS (M1 and classic Homebrew): https://github.com/Homebrew/homebrew-command-not-found
+ # Homebrew: https://github.com/Homebrew/homebrew-command-not-found
/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
); do
if [[ -r "$file" ]]; then
source "$file"