diff --git a/zssh.funcs.zsh b/zssh.funcs.zsh index f81e8d5..6f88aa0 100644 --- a/zssh.funcs.zsh +++ b/zssh.funcs.zsh @@ -93,7 +93,10 @@ function zssh_process() if [[ ${#zssh_host_config_accesses} -gt 0 ]] then zshlibs_log zssh_server "processing ssh server setup" - if [[ "${HOME}/.config/zsh/local.config.zsh" -nt $(zssh_host_info -c) ]] + # - if there is no generated ssh config, + # - if local config not older than (means newer than) generated config + # then generate ssh config + if ! [[ "${HOME}/.config/zsh/local.config.zsh" -ot $(zssh_host_info -c) ]] then zshlibs_log zssh_server "publishing our configs …" zssh_publish_configs