diff options
author | Lorrin Nelson <lhn@mult.ifario.us> | 2011-02-07 23:21:46 -0800 |
---|---|---|
committer | Lorrin Nelson <lhn_github@nerdylorrin.net> | 2011-03-23 21:01:53 -0700 |
commit | e8a7a31ef66093f1b1ab034e84e01a147fa8b28a (patch) | |
tree | 9a8fe2088c8778161f1d0ca8957edc733b7600e3 | |
parent | 52df85440ee8ead8f17d3aa3e1fedf187162313c (diff) | |
download | zsh-e8a7a31ef66093f1b1ab034e84e01a147fa8b28a.tar.gz zsh-e8a7a31ef66093f1b1ab034e84e01a147fa8b28a.tar.bz2 zsh-e8a7a31ef66093f1b1ab034e84e01a147fa8b28a.zip |
Make command-not-found no-op when support not available (e.g. not on Ubuntu)
-rw-r--r-- | plugins/command-not-found/command-not-found.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/command-not-found/command-not-found.plugin.zsh b/plugins/command-not-found/command-not-found.plugin.zsh index 5ab03d5a9..567da1b45 100644 --- a/plugins/command-not-found/command-not-found.plugin.zsh +++ b/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 |