Allow module to be a symbolic link to a non-empty directory (#1510)

This commit is contained in:
Yutian Li 2017-11-13 16:41:54 -08:00 committed by Kaleb Elwert
parent a3f40a7479
commit cbe4815189

View file

@ -96,7 +96,7 @@ function pmodload {
if zstyle -t ":prezto:module:$pmodule" loaded 'yes' 'no'; then
continue
else
locations=(${pmodule_dirs:+${^pmodule_dirs}/$pmodule(/FN)})
locations=(${pmodule_dirs:+${^pmodule_dirs}/$pmodule(-/FN)})
if (( ${#locations} > 1 )); then
print "$0: conflicting module locations: $locations"
continue