Updated to load more plugin names
Prioritized .plugin.zsh over .zsh and prepended zsh- if all else fails
This commit is contained in:
parent
b84c7b79d2
commit
4164e3fede
1 changed files with 6 additions and 2 deletions
8
init.zsh
8
init.zsh
|
@ -34,10 +34,14 @@ fi
|
||||||
for zmodule (${zmodules}); do
|
for zmodule (${zmodules}); do
|
||||||
if [[ -s ${ZIM_HOME}/modules/${zmodule}/init.zsh ]]; then
|
if [[ -s ${ZIM_HOME}/modules/${zmodule}/init.zsh ]]; then
|
||||||
source ${ZIM_HOME}/modules/${zmodule}/init.zsh
|
source ${ZIM_HOME}/modules/${zmodule}/init.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
|
elif [[ -s ${ZIM_HOME}/modules/${zmodule}/${zmodule}.zsh ]]; then
|
||||||
source ${ZIM_HOME}/modules/${zmodule}/${zmodule}.zsh
|
source ${ZIM_HOME}/modules/${zmodule}/${zmodule}.zsh
|
||||||
elif [[ -s ${ZIM_HOME}/modules/${zmodule}/${zmodule}.plugin.zsh ]]; then
|
elif [[ -s ${ZIM_HOME}/modules/${zmodule}/zsh-${zmodule}.plugin.zsh ]]; then
|
||||||
source ${ZIM_HOME}/modules/${zmodule}/${zmodule}.plugin.zsh
|
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
|
elif [[ ! -d ${ZIM_HOME}/modules/${zmodule} ]]; then
|
||||||
print "No such module \"${zmodule}\"." >&2
|
print "No such module \"${zmodule}\"." >&2
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue