~command-not-found-developers/command-not-found/github

« back to all changes in this revision

Viewing changes to zsh_command_not_found

  • Committer: Michael Vogt
  • Date: 2008-03-07 09:21:09 UTC
  • Revision ID: git-v1:03db180d90f3d645fff8e87abe6844cb80453d90
 * Don't run command-not-found from the shell scripts when it has been
   removed in the meantime (LP: #194939)
  - do not advise on ".." (LP: # 195090) - thanks to Thomas Perl

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
}
10
10
 
11
11
function precmd() {
12
 
        (($?)) && [ -n "$command" ] && {
 
12
        (($?)) && [ -n "$command" ] && [ -x /usr/lib/command-not-found ] && {
13
13
                whence -- "$command" >& /dev/null ||
14
14
                        /usr/bin/python /usr/lib/command-not-found -- "$command"
15
15
                unset command