80ab595696f30d89bf52bb5189fa39518a3ca780

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #256 from lorrin/no-op_command-not-found

Make command-not-found no-op when support not available (e.g. not on Ubuntu)

Diff

 1diff --git a/plugins/command-not-found/command-not-found.plugin.zsh b/plugins/command-not-found/command-not-found.plugin.zsh
 2index 5ab03d5a9a57c3ff3f46a9ae881e6bb1643becbd..567da1b450014b4db7b5445bf564973b76c1afea 100644
 3--- a/plugins/command-not-found/command-not-found.plugin.zsh
 4+++ b/plugins/command-not-found/command-not-found.plugin.zsh
 5@@ -2,4 +2,4 @@
 6 # as seen in http://www.porcheron.info/command-not-found-for-zsh/
 7 # this is installed in Ubuntu
 8 
 9-source /etc/zsh_command_not_found
10+[[ -e /etc/zsh_command_not_found ]] && source /etc/zsh_command_not_found