Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
8b55fb3b
Unverified
Commit
8b55fb3b
authored
Apr 08, 2021
by
Daniel Wang
Committed by
Marc Cornellà
Apr 09, 2021
Browse files
feat(command-not-found): add support for Homebrew on Apple M1 (#9797)
parent
9f8801be
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/command-not-found/command-not-found.plugin.zsh
View file @
8b55fb3b
...
...
@@ -38,10 +38,13 @@ if [ -f /usr/libexec/pk-command-not-found ]; then
}
fi
# OS
X
command-not-found support
#
mac
OS command-not-found support
# https://github.com/Homebrew/homebrew-command-not-found
if
[[
-s
'/usr/local/Homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh'
]]
;
then
source
'/usr/local/Homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh'
HB_CNF_HANDLER_SUFFIX
=
"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
# NixOS command-not-found support
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment