From 64d6ae805ce8a02fda4f69ae90c757eba68acb5a Mon Sep 17 00:00:00 2001 From: Denys Digtiar Date: Tue, 28 Nov 2017 14:19:01 +1000 Subject: [PATCH] Source correct module's `init.zsh` Now that modules can be located in different directories, the `init.zsh` should be loaded from the `$module_location` and not `$ZPREZTODIR/modules/$pmodule` --- init.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.zsh b/init.zsh index 347b387c..ccdfb013 100644 --- a/init.zsh +++ b/init.zsh @@ -123,8 +123,8 @@ function pmodload { done } - if [[ -s "$ZPREZTODIR/modules/$pmodule/init.zsh" ]]; then - source "$ZPREZTODIR/modules/$pmodule/init.zsh" + if [[ -s "${pmodule_location}/init.zsh" ]]; then + source "${pmodule_location}/init.zsh" fi if (( $? == 0 )); then