Only source zsh_command_not_found if existing

This commit is contained in:
2021-04-29 09:06:39 +08:00
parent b783753895
commit eb27b8b810

View File

@@ -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