From 1d74bde790e581e1ea25b26011338b27a3440d07 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 347b387..ccdfb01 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