zshlibs/zbootstrap.zsh

23 lines
517 B
Bash

function zlibs_install()
{
git clone --branch master https://git.brass.host/tea/zshlibs.git "${HOME}/.local/zshlibs"
}
if [[ -z ${zshlibs_install} ]]
then
typeset -g zshlibs_install="${HOME}/.local/zshlibs"
fi
fpath+=(${zshlibs_install}/tools)
autoload zshlibs_update
if ! [[ -d ${zshlibs_install} ]]
then
zlibs_install
else
zshlibs_update
fi
source ${zshlibs_install}/tools.funcs.zsh
source ${zshlibs_install}/zconfig.funcs.zsh
source ${zshlibs_install}/global.funcs.zsh
source ${zshlibs_install}/zssh.zsh