From 25bd025efa6f2c360f95bb0a09842876dfc9821e Mon Sep 17 00:00:00 2001 From: Stanislav Vorobyev Date: Mon, 3 Sep 2012 16:58:25 +0400 Subject: [PATCH] check if /etc/zsh_command_not_found exists --- plugins/command-not-found/command-not-found.plugin.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/command-not-found/command-not-found.plugin.zsh b/plugins/command-not-found/command-not-found.plugin.zsh index 5ab03d5a9..9e9aa53d3 100644 --- a/plugins/command-not-found/command-not-found.plugin.zsh +++ b/plugins/command-not-found/command-not-found.plugin.zsh @@ -2,4 +2,6 @@ # as seen in http://www.porcheron.info/command-not-found-for-zsh/ # this is installed in Ubuntu -source /etc/zsh_command_not_found +if [ -f /etc/zsh_command_not_found ]; then + source /etc/zsh_command_not_found +fi