From f7e38bd272e68af621b9952a3ab97e52c11a6d4a Mon Sep 17 00:00:00 2001 From: ArcheyDevil Date: Sat, 7 Apr 2012 01:57:10 +1000 Subject: [PATCH] Tiny patch, bug discovered by F1skr who wanted a plugin which was only for completion, wan't a real plugin. Also better this way as it checks if the plugin has a $plugin.plugin.zsh file in the $plugin's directory. I.e Autocompletion only --- omz | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/omz b/omz index 0e7a480c2..fbe78cf6d 100644 --- a/omz +++ b/omz @@ -33,7 +33,8 @@ omz() { # load plugins for plugin ($plugins); do files=({$OMZ,$ZSH}/plugins/$plugin/$(basename $plugin).plugin.zsh(N)) - source $files[1] || omz_log_msg "$plugin not found." + [[ ${#files} -eq 0 ]] && continue + source $files[1] || omz_log_msg "$plugin: Error, can't source plugin file." done ;; "theme")