From eb27b8b810eccefeb15dcce11051794e355c7465 Mon Sep 17 00:00:00 2001 From: madumlao Date: Thu, 29 Apr 2021 09:06:39 +0800 Subject: [PATCH] Only source zsh_command_not_found if existing --- skel/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skel/.zshrc b/skel/.zshrc index 5147611..0a2d6a4 100644 --- a/skel/.zshrc +++ b/skel/.zshrc @@ -58,7 +58,7 @@ setopt NO_HUP setopt NO_CHECK_JOBS # command suggestions -source /etc/zsh_command_not_found +[ -f "/etc/zsh_command_not_found" ] && source /etc/zsh_command_not_found # rebuild autocompletion always zstyle ":completion:*:commands" rehash 1