mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-31 11:39:25 +00:00
Allow module to be a symbolic link to a non-empty directory (#1510)
This commit is contained in:
2
init.zsh
2
init.zsh
@ -96,7 +96,7 @@ function pmodload {
|
|||||||
if zstyle -t ":prezto:module:$pmodule" loaded 'yes' 'no'; then
|
if zstyle -t ":prezto:module:$pmodule" loaded 'yes' 'no'; then
|
||||||
continue
|
continue
|
||||||
else
|
else
|
||||||
locations=(${pmodule_dirs:+${^pmodule_dirs}/$pmodule(/FN)})
|
locations=(${pmodule_dirs:+${^pmodule_dirs}/$pmodule(-/FN)})
|
||||||
if (( ${#locations} > 1 )); then
|
if (( ${#locations} > 1 )); then
|
||||||
print "$0: conflicting module locations: $locations"
|
print "$0: conflicting module locations: $locations"
|
||||||
continue
|
continue
|
||||||
|
Reference in New Issue
Block a user