I'm trying to get the command-not-found feature under Ubuntu to work under zsh, without luck:

➜  ~  pdfunite
zsh: command not found: pdfunite
➜  ~  bash
u@ub:~$ pdfunite
The program 'pdfunite' is currently not installed.  You can install it by typing:
sudo apt-get install poppler-utils

Does anyone know if there is a package available that also supports zsh?

Thank you.


You have to source it in your .zshrc:

if [[ -s '/etc/zsh_command_not_found' ]]; then
  source '/etc/zsh_command_not_found'

The script is part of the package command-not-found:

$ apt-cache search zsh_command_not_found
> command-not-found: /etc/zsh_command_not_found

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.