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
Oh My Zsh
Commits
f6557932
Commit
f6557932
authored
Oct 22, 2015
by
Alberto Gireud
Browse files
Add OSX support for command-not-found
parent
e44aa503
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/command-not-found/command-not-found.plugin.zsh
View file @
f6557932
...
@@ -23,3 +23,11 @@ if [ -f /usr/libexec/pk-command-not-found ]; then
...
@@ -23,3 +23,11 @@ if [ -f /usr/libexec/pk-command-not-found ]; then
return
$retval
return
$retval
}
}
fi
fi
# OSX command-not-found support
# https://github.com/Homebrew/homebrew-command-not-found
if
type
brew &> /dev/null
;
then
if
brew
command
command-not-found-init
>
/dev/null 2>&1
;
then
eval
"
$(
brew command-not-found-init
)
"
;
fi
fi
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