Attached patch uses the zsh command_not_found_handler function which works the same as command_not_found_handle in bash. It's been in zsh since v3 (I didn't bother testing any zsh but the latest 4.3).
Patch does something slightly different from the bash file: instead of testing every time the function runs that [ -x command-not-found ] it's just done once at initialisation, and the function is defined if so. Less work done this way, although users will get strange errors after uninstalling command-not-found until they restart their shell. ** Patch added: "patch-improve-zsh-integration.diff" https://bugs.launchpad.net/command-not-found/+bug/520096/+attachment/2267337/+files/patch-improve-zsh-integration.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/520096 Title: for zsh cnf_command is populated with incorrect value To manage notifications about this bug go to: https://bugs.launchpad.net/command-not-found/+bug/520096/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs