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