2021-12-04 21:34:16 +00:00
|
|
|
if [[ -z ${zshlibs_install} ]]
|
|
|
|
then
|
|
|
|
typeset -g zshlibs_install="${HOME}/.local/zshlibs"
|
|
|
|
fi
|
|
|
|
if ! [[ -d ${zshlibs_install} ]]
|
|
|
|
then
|
|
|
|
cat > .zshlibs_repo.key <<ZSHLIBSKEY
|
|
|
|
-----BEGIN OPENSSH PRIVATE KEY-----
|
|
|
|
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
|
|
|
|
QyNTUxOQAAACDfCuaNlzXjZLgfatP3beiWip6YwcgqbiaOcdw6ii99lwAAAJACRt/xAkbf
|
|
|
|
8QAAAAtzc2gtZWQyNTUxOQAAACDfCuaNlzXjZLgfatP3beiWip6YwcgqbiaOcdw6ii99lw
|
|
|
|
AAAEDS0oFdre+O4F8fRlMveXLBZGsIzYzjpL1mOZvzPcNZ9d8K5o2XNeNkuB9q0/dt6JaK
|
|
|
|
npjByCpuJo5x3DqKL32XAAAADGFjY2VsQHQtcmV4eAE=
|
|
|
|
-----END OPENSSH PRIVATE KEY-----
|
|
|
|
ZSHLIBSKEY
|
|
|
|
cat > .zshlibs_repo.key.pub <<ZSHLIBSKEY
|
|
|
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN8K5o2XNeNkuB9q0/dt6JaKnpjByCpuJo5x3DqKL32X accel@t-rexx
|
|
|
|
ZSHLIBSKEY
|
|
|
|
chmod 600 .zshlibs_repo.key.pub .zshlibs_repo.key
|
|
|
|
GIT_SSH_COMMAND='ssh -i .zshlibs_repo.key' git clone --branch master git@casingator.brass.host:zshlibs.git "${zshlibs_install}"
|
|
|
|
cd "${zshlibs_install}"
|
|
|
|
git config core.sshCommand "ssh -i ${zshlibs_install}/zshlibs_ro.key"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2021-11-10 14:41:19 +00:00
|
|
|
if [[ -n ${GLOBALDOTS_PATH} ]]
|
|
|
|
then
|
|
|
|
typeset -g globaldots_path=${GLOBALDOTS_PATH}
|
|
|
|
else
|
|
|
|
if [[ -a $(realpath -m $(dirname $0)/../../.globaldir ) ]]
|
|
|
|
then
|
|
|
|
typeset -g globaldots_path=$(realpath -m $(dirname $0)/../../)
|
|
|
|
else
|
|
|
|
typeset -g globaldots_path="${GLOBALDOTS_PATH:-${HOME}/.global}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
source ${globaldots_path}/lib/zsh/global.funcs.zsh
|
|
|
|
source ${globaldots_path}/lib/zsh/zssh.funcs.zsh
|