Skip to content

Commit

Permalink
Source correct module's init.zsh
Browse files Browse the repository at this point in the history
Now that modules can be located in different directories, the `init.zsh` should be loaded from the `$module_location` and not `$ZPREZTODIR/modules/$pmodule`
  • Loading branch information
duemir authored and belak committed Nov 28, 2017
1 parent 221c6cd commit 64d6ae8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64d6ae8

Please sign in to comment.