From 45b9fb9b070329335df784e8d7afbd6f1d45b050 Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Tue, 29 Nov 2011 07:30:09 -0500 Subject: [PATCH 1/2] 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 From 160761fbfeb3129fd3030f755d80d0ac19ddde8b Mon Sep 17 00:00:00 2001 From: Simon Gomizelj Date: Tue, 29 Nov 2011 07:37:50 -0500 Subject: [PATCH 2/2] This really fixes everything! --- oh-my-zsh.zsh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/oh-my-zsh.zsh b/oh-my-zsh.zsh index 614db82c5..09ea98919 100644 --- a/oh-my-zsh.zsh +++ b/oh-my-zsh.zsh @@ -5,23 +5,31 @@ local config_file plugin # add a function path fpath=($ZSH/functions $ZSH/completions $fpath) -for config_file ($ZSH/lib/*.zsh) source $config_file -plugin=${plugin:=()} -for plugin ($plugins) fpath=($ZSH/plugins/$plugin $fpath) if [[ -d ~/.omz ]]; then [[ -d ~/.omz/functions ]] && fpath=(~/.omz/functions $fpath) [[ -d ~/.omz/completion ]] && fpath=(~/.omz/completions $fpath) +fi +for config_file ($ZSH/lib/*.zsh) source $config_file +if [[ -d ~/.omz ]]; then if [[ -d ~/.omz/lib ]]; then for config_file (~/.omz/lib/*.zsh) source $config_file fi +fi +plugin=${plugin:=()} +for plugin ($plugins) fpath=($ZSH/plugins/$plugin $fpath) +if [[ -d ~/.omz ]]; then if [[ -d ~/.omz/plugins ]]; then for plugin ($plugins) fpath=(~/.omz/plugins/$plugin $fpath) fi fi +# Load and run compinit +autoload -U compinit +compinit -i + # load plugins for plugin ($plugins); do if [[ -f ~/.omz/plugins/$plugin/$plugin.plugin.zsh ]]; then @@ -31,10 +39,6 @@ for plugin ($plugins); do fi done -# Load and run compinit -autoload -U compinit -compinit -i - # Load the theme if [ "$ZSH_THEME" = "random" ] then