From 0b037ab35bb3e8ea0917dd40a9b02c8a9dba5172 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Mon, 14 Dec 2015 10:43:41 +0100 Subject: [PATCH] Update command-not-found hook. The hook is now compatible with both ubuntu zsh and arch zsh cnf hooks. --- zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 46ead56..2bb7bd6 100644 --- a/zshrc +++ b/zshrc @@ -20,7 +20,11 @@ prompt bart setopt HIST_IGNORE_DUPS # Setup the CNF hook -source /usr/share/doc/pkgfile/command-not-found.zsh +if [[ -s /usr/share/doc/pkgfile/command-not-found.zsh ]]; then + source /usr/share/doc/pkgfile/command-not-found.zsh +elif [[ -s /etc/zsh_command_not_found ]]; then + source /etc/zsh_command_not_found +fi # History search autoload -U history-search-end