same as last commit, but more! plugin sourcing.

This commit is contained in:
James McGlashan 2011-12-05 23:22:31 +11:00
commit 198d57d788

17
omz
View file

@ -44,14 +44,15 @@ omz() {
compinit -i compinit -i
# load plugins (TODO: Make this slimmer and better) # load plugins (TODO: Make this slimmer and better)
for plugin ($plugins); do for plugin ($fpath/*.plugin.zsh(N)) source $plugin
plugin_sub=$(echo $plugin|cut -d'/' -f2) # for plugin ($plugins); do
if [[ -f $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then # plugin_sub=$(echo $plugin|cut -d'/' -f2)
source $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh # if [[ -f $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then
elif [[ -f $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then # source $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh
source $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh # elif [[ -f $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then
fi # source $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh
done # fi
# done
local theme local theme
zstyle -a :omz:style theme theme zstyle -a :omz:style theme theme