Skip to content

Commit a16e498

Browse files
committed
only source if there's something found
1 parent 9ae1d87 commit a16e498

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

zpico.zsh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ _zpico_add() {
5555
fi
5656

5757
local zscripts=(${zpath}/(${zuse}|init.zsh|${zmodule:t}.(zsh|plugin.zsh|zsh-theme|sh)|*.plugin.zsh)(NOL[1]))
58-
source ${zscripts}
58+
if [[ "$zscripts" != "" ]]; then
59+
source ${zscripts}
60+
fi
5961
}
6062

6163
_zpico_update() {

0 commit comments

Comments
 (0)