This works, although one-liner in the making.

This commit is contained in:
jamesm-sitegen 2011-12-06 00:30:51 +11:00
commit c214d08b1b

18
omz
View file

@ -44,15 +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 ($fpath/*.plugin.zsh(N)) source $plugin # for plugin ($fpath/*.plugin.zsh(N)) source $plugin
# for plugin ($plugins); do for plugin ($plugins); do
# plugin_sub=$(echo $plugin|cut -d'/' -f2) plugin_sub=$(echo $plugin|cut -d'/' -f2)
# if [[ -f $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then if [[ -f $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then
# source $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh source $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh
# elif [[ -f $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then elif [[ -f $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then
# source $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh source $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh
# fi fi
# done done
local theme local theme
zstyle -a :omz:style theme theme zstyle -a :omz:style theme theme