Homebrew / homebrew-command-not-found

🔍 Ubuntu’s command-not-found equivalent for Homebrew on macOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Path given in README does not work for `/opt/homebrew` installations on M1 Macs

nertzy opened this issue · comments

For example, the instructions for fish have:

set HB_CNF_HANDLER (brew --prefix)"/Homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.fish"

But /opt/homebrew/Homebrew does not exist in a standard installation. The Library has moved to /opt/homebrew/Library which means that the /Homebrew portion of the path should be removed.