fix "no such file" bug for non-ubuntu system

This commit is contained in:
lxyu 2012-10-22 18:01:38 +08:00
commit 08cbbb7837

View file

@ -2,4 +2,6 @@
# as seen in http://www.porcheron.info/command-not-found-for-zsh/
# this is installed in Ubuntu
source /etc/zsh_command_not_found
if [[ -f "/etc/zsh_command_not_found" ]]; then
source /etc/zsh_command_not_found
fi