From c214d08b1b329d6657128535cb856dc1750f3afe Mon Sep 17 00:00:00 2001 From: jamesm-sitegen Date: Tue, 6 Dec 2011 00:30:51 +1100 Subject: [PATCH] This works, although one-liner in the making. --- omz | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/omz b/omz index e712d84b3..890b6396b 100644 --- a/omz +++ b/omz @@ -44,15 +44,15 @@ omz() { compinit -i # load plugins (TODO: Make this slimmer and better) - for plugin ($fpath/*.plugin.zsh(N)) source $plugin - # for plugin ($plugins); do - # plugin_sub=$(echo $plugin|cut -d'/' -f2) - # if [[ -f $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then - # source $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh - # elif [[ -f $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then - # source $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh - # fi - # done + # for plugin ($fpath/*.plugin.zsh(N)) source $plugin + for plugin ($plugins); do + plugin_sub=$(echo $plugin|cut -d'/' -f2) + if [[ -f $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then + source $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh + elif [[ -f $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then + source $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh + fi + done local theme zstyle -a :omz:style theme theme