From a16e498c0c268388ac77cfb26caeaff13820d434 Mon Sep 17 00:00:00 2001 From: Jade Michael Thornton Date: Thu, 24 Jun 2021 15:29:58 -0500 Subject: [PATCH] only source if there's something found --- zpico.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() {