Browse Source

Make command-not-found no-op when support not available (e.g. not on Ubuntu)

Lorrin Nelson 14 years ago
parent
commit
e8a7a31ef6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/command-not-found/command-not-found.plugin.zsh

+ 1 - 1
plugins/command-not-found/command-not-found.plugin.zsh

@@ -2,4 +2,4 @@
 # as seen in http://www.porcheron.info/command-not-found-for-zsh/
 # this is installed in Ubuntu
 
-source /etc/zsh_command_not_found
+[[ -e /etc/zsh_command_not_found ]] && source /etc/zsh_command_not_found