Skip to content

Commit 0294145

Browse files
committed
Add support for loading plugins in the oh-my-zsh format
Closes sorin-ionescu#1484
1 parent 7cdde9b commit 0294145

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

init.zsh

+2
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ function pmodload {
125125

126126
if [[ -s "${pmodule_location}/init.zsh" ]]; then
127127
source "${pmodule_location}/init.zsh"
128+
elif [[ -s "${pmodule_location}/${pmodule}.plugin.zsh" ]]; then
129+
source "${pmodule_location}/${pmodule}.plugin.zsh"
128130
fi
129131

130132
if (( $? == 0 )); then

0 commit comments

Comments
 (0)