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

This commit is contained in:
ArcheyDevil 2012-04-07 01:57:10 +10:00
commit f7e38bd272

3
omz
View file

@ -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")