Unverified Commit 8b55fb3b authored by Daniel Wang's avatar Daniel Wang Committed by Marc Cornellà
Browse files

feat(command-not-found): add support for Homebrew on Apple M1 (#9797)

parent 9f8801be
...@@ -38,10 +38,13 @@ if [ -f /usr/libexec/pk-command-not-found ]; then ...@@ -38,10 +38,13 @@ if [ -f /usr/libexec/pk-command-not-found ]; then
} }
fi fi
# OSX command-not-found support # macOS command-not-found support
# https://github.com/Homebrew/homebrew-command-not-found # https://github.com/Homebrew/homebrew-command-not-found
if [[ -s '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh' ]]; then HB_CNF_HANDLER_SUFFIX="Library/Taps/homebrew/homebrew-command-not-found/handler.sh"
source '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh' if [[ -s "/opt/homebrew/$HB_CNF_HANDLER_SUFFIX" ]]; then
source "/opt/homebrew/$HB_CNF_HANDLER_SUFFIX"
elif [[ -s "/usr/local/Homebrew/$HB_CNF_HANDLER_SUFFIX" ]]; then
source "/usr/local/Homebrew/$HB_CNF_HANDLER_SUFFIX"
fi fi
# NixOS command-not-found support # NixOS command-not-found support
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment