1
0
Fork 0
mirror of synced 2024-11-23 07:45:34 -05:00

Updated to load more plugin names

Prioritized .plugin.zsh over .zsh and prepended zsh- if all else fails
This commit is contained in:
Atomic Coding 2018-03-29 10:14:06 -07:00 committed by GitHub
parent b84c7b79d2
commit 4164e3fede
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,10 +34,14 @@ 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}/${zmodule}.zsh
elif [[ -s ${ZIM_HOME}/modules/${zmodule}/${zmodule}.plugin.zsh ]]; then
source ${ZIM_HOME}/modules/${zmodule}/${zmodule}.plugin.zsh
elif [[ -s ${ZIM_HOME}/modules/${zmodule}/${zmodule}.zsh ]]; then
source ${ZIM_HOME}/modules/${zmodule}/${zmodule}.zsh
elif [[ -s ${ZIM_HOME}/modules/${zmodule}/zsh-${zmodule}.plugin.zsh ]]; then
source ${ZIM_HOME}/modules/${zmodule}/zsh-${zmodule}.plugin.zsh
elif [[ -s ${ZIM_HOME}/modules/${zmodule}/zsh-${zmodule}.zsh ]]; then
source ${ZIM_HOME}/modules/${zmodule}/zsh-${zmodule}.zsh
elif [[ ! -d ${ZIM_HOME}/modules/${zmodule} ]]; then
print "No such module \"${zmodule}\"." >&2
fi