summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2016-01-15 18:18:46 +0100
committerMarc Cornellà <marc.cornella@live.com>2016-01-15 18:18:46 +0100
commit4b9bc91ce49ecf986b59aa181b2b0ba3e21c547b (patch)
treed4e8ce57538766626fde947e2946f75b833dcac4 /plugins
parent078cd4ae2b97bf9cd08dc9455fbef80145cc5191 (diff)
parentf6557932e9f8e4366198856baff92ec3afbe5b5c (diff)
downloadzsh-4b9bc91ce49ecf986b59aa181b2b0ba3e21c547b.tar.gz
zsh-4b9bc91ce49ecf986b59aa181b2b0ba3e21c547b.tar.bz2
zsh-4b9bc91ce49ecf986b59aa181b2b0ba3e21c547b.zip
Merge pull request #4537 from agireud/command-not-found-OSX
Add OSX support for command-not-found
Diffstat (limited to 'plugins')
-rw-r--r--plugins/command-not-found/command-not-found.plugin.zsh8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/command-not-found/command-not-found.plugin.zsh b/plugins/command-not-found/command-not-found.plugin.zsh
index 797554a13..0e2f2133f 100644
--- a/plugins/command-not-found/command-not-found.plugin.zsh
+++ b/plugins/command-not-found/command-not-found.plugin.zsh
@@ -23,3 +23,11 @@ if [ -f /usr/libexec/pk-command-not-found ]; then
return $retval
}
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