HEX
Server: Apache
System: Linux nc-ph-4101.simplemoneygoals.com 5.14.0-503.21.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jan 12 09:45:05 EST 2025 x86_64
User: dailygoldindex (1004)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/share/zsh/site-functions/_sd_machines
#autoload
# SPDX-License-Identifier: LGPL-2.1-or-later

(( $+functions[__sd_machines_get_machines] )) ||
    __sd_machines_get_machines () {

    { machinectl list --full --max-addresses=0 --no-legend --no-pager 2>/dev/null; echo ".host"; } | \
	{ while read a b; do echo "$a"; done; } | \
        sort -u
    }

local -a _machines
_machines=("${(fo)$(__sd_machines_get_machines)}")
typeset -U _machines
if [[ -n "$_machines" ]]; then
    _describe 'machines' _machines
else
    _message 'no machines'
fi