浏览代码

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

Lorrin Nelson 14 年之前
父节点
当前提交
e8a7a31ef6
共有 1 个文件被更改,包括 1 次插入1 次删除
  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