e8a7a31ef66093f1b1ab034e84e01a147fa8b28a
- Author
- Lorrin Nelson <lhn@mult.ifario.us>
- Committer
- Lorrin Nelson <lhn_github@nerdylorrin.net>
- Date
Message
Make command-not-found no-op when support not available (e.g. not on Ubuntu)
Diff
1diff --git a/plugins/command-not-found/command-not-found.plugin.zsh b/plugins/command-not-found/command-not-found.plugin.zsh
2index 5ab03d5a9a57c3ff3f46a9ae881e6bb1643becbd..567da1b450014b4db7b5445bf564973b76c1afea 100644
3--- a/plugins/command-not-found/command-not-found.plugin.zsh
4+++ b/plugins/command-not-found/command-not-found.plugin.zsh
5@@ -2,4 +2,4 @@
6 # as seen in http://www.porcheron.info/command-not-found-for-zsh/
7 # this is installed in Ubuntu
8
9-source /etc/zsh_command_not_found
10+[[ -e /etc/zsh_command_not_found ]] && source /etc/zsh_command_not_found