# define this function with two names
#  - one to be generic command_not_found_handler() and to be hooked
#  - one to be available when command_not_found_handler() is redefined
function command_not_found_handler cnf_handler {
    if [ -x /usr/bin/python3 ] && [ -x /usr/bin/command-not-found ]; then
        # take first parameter and remove quotes if there were any so
        # $ 'foo'
        # will search for foo
        /usr/bin/command-not-found "${(Q)1}" __REPO__
    fi
}
