command-not-found works only in zsh after editing .zshrc
Bug #179176 reported by
Kai Wilker
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zsh |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Hi!
Yesterday I noticed that command-not-found doesn't work in zsh. Then I've downloaded the source of your program and saw the file called zsh_command_
My zsh version is 4.3.4-14-ubuntu2, my command-not-found version 0.2.8ubuntu2. My OS is Ubuntu Gutsy Gibbon.
Bye,
Kai Wilker
To post a comment you must log in.
Re assignig to zsh as it depends on editing zsh-supplied configuration file (/etc/zsh/ zprofile) . I would like to suggest doing the same trick as with bash - adding the code to system-wide profile file only when command-not-found is installed (/usr/lib/ command- not-found exists).