Skip to content

Commit

Permalink
only source if there's something found
Browse files Browse the repository at this point in the history
  • Loading branch information
thornjad committed Jun 24, 2021
1 parent 9ae1d87 commit a16e498
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zpico.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit a16e498

Please sign in to comment.