This file is indexed.

/etc/zsh_command_not_found is in command-not-found 0.2.38-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# (c) Zygmunt Krynicki 2007,
# Licensed under GPL, see COPYING for the whole text
#
# This script will look-up command in the database and suggest
# installation of packages available from the repository

# Pseudo-namespace cnf_

function cnf_preexec() {
    typeset -g cnf_command="${1%% *}"
}

function cnf_precmd() {
    (($?)) && [ -n "$cnf_command" ] && [ -x /usr/share/command-not-found/command-not-found ] && {
        whence -- "$cnf_command" >& /dev/null ||
            /usr/bin/python /usr/share/command-not-found/command-not-found -- "$cnf_command"
        unset cnf_command
    }
}

typeset -ga preexec_functions
typeset -ga precmd_functions
preexec_functions+=cnf_preexec
precmd_functions+=cnf_precmd