From 45b9fb9b070329335df784e8d7afbd6f1d45b050 Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Tue, 29 Nov 2011 07:30:09 -0500 Subject: [PATCH] I may have broken plugin loading. This should restore it. It will load a plugin out of ~/.omz first and if its not there /usr/share/oh-my-zsh --- oh-my-zsh.zsh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/oh-my-zsh.zsh b/oh-my-zsh.zsh index 0b5db7fca..614db82c5 100644 --- a/oh-my-zsh.zsh +++ b/oh-my-zsh.zsh @@ -22,6 +22,15 @@ if [[ -d ~/.omz ]]; then fi fi +# load plugins +for plugin ($plugins); do + if [[ -f ~/.omz/plugins/$plugin/$plugin.plugin.zsh ]]; then + source ~/.omz/plugins/$plugin/$plugin.plugin.zsh + elif [[ -f $ZSH/plugins/$plugin/$plugin.plugin.zsh ]]; then + source $ZSH/plugins/$plugin/$plugin.plugin.zsh + fi +done + # Load and run compinit autoload -U compinit compinit -i