PNG  IHDR* pHYs+ IDATx]n#; cdLb Ǚ[at¤_:uP}>!Usă cag޿ ֵNu`ݼTâabO7uL&y^wFٝA"l[|ŲHLN밪4*sG3|Dv}?+y߉{OuOAt4Jj.u]Gz*҉sP'VQKbA1u\`& Af;HWj hsO;ogTu uj7S3/QzUr&wS`M$X_L7r2;aE+ώ%vikDA:dR+%KzƉo>eOth$z%: :{WwaQ:wz%4foɹE[9<]#ERINƻv溂E%P1i01 |Jvҗ&{b?9g=^wζXn/lK::90KwrюO\!ջ3uzuGv^;騢wq<Iatv09:tt~hEG`v;3@MNZD.1]L:{ծI3`L(÷ba")Y.iljCɄae#I"1 `3*Bdz>j<fU40⨬%O$3cGt]j%Fߠ_twJ;ABU8vP3uEԑwQ V:h%))LfraqX-ۿX]v-\9I gl8tzX ]ecm)-cgʒ#Uw=Wlێn(0hPP/ӨtQ“&J35 $=]r1{tLuǮ*i0_;NƝ8;-vݏr8+U-kruȕYr0RnC]*ެ(M:]gE;{]tg(#ZJ9y>utRDRMdr9㪩̞zֹb<ģ&wzJM"iI( .ꮅX)Qw:9,i좜\Ԛi7&N0:asϓc];=ΗOӣ APqz93 y $)A*kVHZwBƺnWNaby>XMN*45~ղM6Nvm;A=jֲ.~1}(9`KJ/V F9[=`~[;sRuk]rєT!)iQO)Y$V ی ۤmzWz5IM Zb )ˆC`6 rRa}qNmUfDsWuˤV{ Pݝ'=Kֳbg,UҘVz2ﴻnjNgBb{? ߮tcsͻQuxVCIY۠:(V뺕 ٥2;t`@Fo{Z9`;]wMzU~%UA蛚dI vGq\r82iu +St`cR.6U/M9IENDB` REDROOM
PHP 5.6.40
Preview: _hostnamectl Size: 2.22 KB
/usr/share/zsh/site-functions/_hostnamectl

#compdef hostnamectl
# SPDX-License-Identifier: LGPL-2.1+

_hostnamectl_set-hostname() {
    if (( CURRENT <= 3 )); then
        _message "new hostname"
    else
        _message "no more options"
    fi
}

_hostnamectl_set-icon-name() {
    if (( CURRENT <= 3 )); then
        _message "new icon name"
    else
        _message "no more options"
    fi
}

_hostnamectl_set-chassis() {
    if (( CURRENT <= 3 )); then
        _chassis=( desktop laptop convertible server tablet handset watch embedded vm container )
        _describe chassis _chassis
    else
        _message "no more options"
    fi
}

_hostnamectl_set-deployment() {
    if (( CURRENT <= 3 )); then
        _message "new environment"
    else
        _message "no more options"
    fi
}

_hostnamectl_set-location() {
    if (( CURRENT <= 3 )); then
        _message "new location"
    else
        _message "no more options"
    fi
}

_hostnamectl_command() {
    local -a _hostnamectl_cmds
    _hostnamectl_cmds=(
        "status:Show current hostname settings"
        "set-hostname:Set system hostname"
        "set-icon-name:Set icon name for host"
        "set-chassis:Set chassis type for host"
        "set-deployment:Set deployment environment for host"
        "set-location:Set location for host"
    )
    if (( CURRENT == 1 )); then
        _describe -t commands 'hostnamectl commands' _hostnamectl_cmds || compadd "$@"
    else
        local curcontext="$curcontext"
        cmd="${${_hostnamectl_cmds[(r)$words[1]:*]%%:*}}"
        if (( $#cmd )); then
            if [[ $cmd == status ]]; then
                _message "no options"
            else
                _hostnamectl_$cmd
            fi
        else
            _message "unknown hostnamectl command: $words[1]"
        fi
    fi
}

_arguments -s \
    {-h,--help}'[Show this help]' \
    '--version[Show package version]' \
    '--transient[Only set transient hostname]' \
    '--static[Only set static hostname]' \
    '--pretty[Only set pretty hostname]' \
    '--no-ask-password[Do not prompt for password]' \
    {-H+,--host=}'[Operate on remote host]:userathost:_sd_hosts_or_user_at_host' \
    {-M+,--machine=}'[Operate on local container]:machines:_sd_machines' \
    '*::hostnamectl commands:_hostnamectl_command'

Directory Contents

Dirs: 0 × Files: 23

Name Size Perms Modified Actions
1.08 KB lrw-r--r-- 2018-06-22 11:11:49
Edit Download
2.99 KB lrw-r--r-- 2018-06-22 11:11:49
Edit Download
1.54 KB lrw-r--r-- 2018-06-22 11:11:49
Edit Download
13.02 KB lrw-r--r-- 2025-12-18 14:22:08
Edit Download
2.22 KB lrw-r--r-- 2018-06-22 11:11:49
Edit Download
5.83 KB lrw-r--r-- 2018-06-22 11:11:49
Edit Download
651 B lrw-r--r-- 2018-06-22 11:11:49
Edit Download
3.50 KB lrw-r--r-- 2018-06-22 11:11:49
Edit Download
5.67 KB lrw-r--r-- 2018-06-22 11:11:49
Edit Download
116 B lrw-r--r-- 2018-06-22 11:11:49
Edit Download
355 B lrw-r--r-- 2018-06-22 11:11:49
Edit Download
289 B lrw-r--r-- 2018-06-22 11:11:49
Edit Download
255 B lrw-r--r-- 2018-06-22 11:11:49
Edit Download
15.24 KB lrw-r--r-- 2026-01-26 09:29:55
Edit Download
3.75 KB lrw-r--r-- 2018-06-22 11:11:49
Edit Download
2.99 KB lrw-r--r-- 2018-06-22 11:11:49
Edit Download
564 B lrw-r--r-- 2018-06-22 11:11:49
Edit Download
1.04 KB lrw-r--r-- 2018-06-22 11:11:49
Edit Download
2.28 KB lrw-r--r-- 2018-06-22 11:11:49
Edit Download
3.06 KB lrw-r--r-- 2018-06-22 11:11:49
Edit Download
736 B lrw-r--r-- 2018-06-22 11:11:49
Edit Download
1.99 KB lrw-r--r-- 2018-06-22 11:11:49
Edit Download
5.86 KB lrw-r--r-- 2018-06-22 11:11:49
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).
© 2026 REDROOM — Secure File Manager. All rights reserved. Built with ❤️ & Red Dark UI