Cleaned up plugin_sub

This commit is contained in:
jamesm-sitegen 2011-12-06 00:37:52 +11:00
commit c1c11f01a7

2
omz
View file

@ -46,7 +46,7 @@ omz() {
# 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)
plugin_sub=$(basename $plugin)
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