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