diff --git a/global.funcs.zsh b/global.funcs.zsh index 5a9fda5..6af922e 100644 --- a/global.funcs.zsh +++ b/global.funcs.zsh @@ -22,6 +22,17 @@ function global_fpath_expand() done; } +function ztools_update() +{ + # + if [[ -z "$ztools_install_directory" ]] + then + echo '$ztools_install_directory not set!' + return 1 + fi + +} + function zconfig_checkload() { diff --git a/zbootstrap.zsh b/zbootstrap.zsh index 809b8c6..ee7891f 100644 --- a/zbootstrap.zsh +++ b/zbootstrap.zsh @@ -1,3 +1,28 @@ +if [[ -z ${zshlibs_install} ]] +then + typeset -g zshlibs_install="${HOME}/.local/zshlibs" +fi +if ! [[ -d ${zshlibs_install} ]] +then + cat > .zshlibs_repo.key < .zshlibs_repo.key.pub < $keytooffer - fi - done - else - zbootstrap_message zssh "no zssh_thishost defined, offering skipped" - fi -} - -function zssh_accept_key() -{ - local offered=$zssh_global_configs/$zssh_thishost/keyoffer/$1.pub - cat $offered - echo "do you accept key '$1'? :" - read - if [[ $REPLY == 'Y' ]] - then - echo "key $1 accepted" - cat $offered >> ${HOME}/.ssh/authorized_keys - else - echo "key $1 NOT accepted" - fi -} function zssh_enumeratenodes() {