Zsh: Return early if _my_plugins is empty

This commit is contained in:
tastytea 2022-04-06 04:07:06 +02:00
parent a6baba1e30
commit eb4973ae60
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -56,8 +56,9 @@ if [[ -f /etc/gentoo-release ]]; then
fi
export ZSH_PLUGIN_DIST="${_my_plugins_dist}" # Arrays can not be exported
[[ -z ${_my_plugins} ]] && return
# If there are plugins not handled by the package manager, use antibody
if [[ -n ${_my_plugins} ]] && command -v antibody > /dev/null; then
if command -v antibody > /dev/null; then
zmodload zsh/stat
zmodload zsh/datetime