1
0
Fork 0
mirror of synced 2024-12-27 08:23:21 -05:00

Updated Plugin Loading

This commit is contained in:
Yonatan Ahituv 2018-03-28 21:40:24 -07:00
parent 72f0bc5de0
commit 0bcf58fcf2

View file

@ -34,6 +34,10 @@ fi
for zmodule (${zmodules}); do
if [[ -s ${ZIM_HOME}/modules/${zmodule}/init.zsh ]]; then
source ${ZIM_HOME}/modules/${zmodule}/init.zsh
elif [[ -s ${ZIM_HOME}/modules/${zmodule}/${zmodule}.zsh ]]; then
source ${ZIM_HOME}/modules/${zmodule}.zsh
elif [[ -s ${ZIM_HOME}/modules/${zmodule}/${zmodule}.plugin.zsh ]]; then
source ${ZIM_HOME}/modules/${zmodule}/${zmodule}.plugin.zsh
elif [[ ! -d ${ZIM_HOME}/modules/${zmodule} ]]; then
print "No such module \"${zmodule}\"." >&2
fi