zshlibs/zssh/zssh_enumeratenodes

14 lines
325 B
Plaintext
Raw Permalink Normal View History

2024-01-18 12:18:03 +00:00
function zssh_enumeratenodes()
{
typeset -g -a zssh_nodes;
zshlibs_log zssh_configure "enumerating nodes"
if [[ -d $zssh_global_configs ]]
then
for __ssh_node in ${zssh_global_configs}/*(/)
do
zssh_nodes+=($(basename $__ssh_node))
done
fi
zshlibs_log zssh_configure "got ${#zssh_nodes} nodes"
}