diff --git a/zpico.zsh b/zpico.zsh index ea8319e..0bf5ef5 100644 --- a/zpico.zsh +++ b/zpico.zsh @@ -55,7 +55,9 @@ _zpico_add() { fi local zscripts=(${zpath}/(${zuse}|init.zsh|${zmodule:t}.(zsh|plugin.zsh|zsh-theme|sh)|*.plugin.zsh)(NOL[1])) - source ${zscripts} + if [[ "$zscripts" != "" ]]; then + source ${zscripts} + fi } _zpico_update() {