opional zsh module sched used to update zshlibs

This commit is contained in:
Aleksey 2024-04-25 22:04:15 +04:00
parent 0e68037fdc
commit 5c1123867f
Signed by: tea
GPG Key ID: D9C68D34A3CAE37A

View File

@ -11,9 +11,14 @@ autoload zshlibs_update
if ! [[ -d ${zshlibs_install} ]] if ! [[ -d ${zshlibs_install} ]]
then then
zlibs_install zlibs_install
else
if zmodload -s zsh/sched
then
sched +0 zshlibs_update
else else
zshlibs_update zshlibs_update
fi fi
fi
source ${zshlibs_install}/tools.zsh source ${zshlibs_install}/tools.zsh
source ${zshlibs_install}/zconfig.zsh source ${zshlibs_install}/zconfig.zsh