Zsh: Return early if _my_plugins is empty
This commit is contained in:
parent
a6baba1e30
commit
eb4973ae60
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user