mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 18:38:00 +00:00
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`
This commit is contained in:
parent
221c6cd128
commit
64d6ae805c
4
init.zsh
4
init.zsh
@ -123,8 +123,8 @@ function pmodload {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ -s "$ZPREZTODIR/modules/$pmodule/init.zsh" ]]; then
|
if [[ -s "${pmodule_location}/init.zsh" ]]; then
|
||||||
source "$ZPREZTODIR/modules/$pmodule/init.zsh"
|
source "${pmodule_location}/init.zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (( $? == 0 )); then
|
if (( $? == 0 )); then
|
||||||
|
Loading…
Reference in New Issue
Block a user