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: _timedatectl Size: 1.99 KB
/usr/share/zsh/site-functions/_timedatectl

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

_timedatectl_set-timezone(){
    local -a _timezones
    _timezones=( ${(f)"$(_call_program timezones "${service}" list-timezones)"} )
    compadd "$_timezones[@]"
}

_timedatectl_set-time(){
    _message "YYYY-MM-DD HH:MM:SS"
}

_timedatectl_set-local-rtc(){
    local -a _options
    _options=(
        '0:Maintain RTC in universal time'
        '1:Maintain RTC in local time'
    )
    _describe options _options
}

_timedatectl_set-ntp(){
    local -a _options
    _options=(
        '0:Disable NTP based network time configuration'
        '1:Enable NTP based network time configuration'
    )
    _describe options _options
}

_timedatectl_command(){
    local -a _timedatectl_cmds
    _timedatectl_cmds=(
        'status:Show current time settings'
        'set-time:Set system time'
        'set-timezone:Set system timezone'
        'list-timezones:Show known timezones'
        'set-local-rtc:Control whether RTC is in local time'
        'set-ntp:Control whether NTP is enabled'
    )
    if (( CURRENT == 1 )); then
        _describe -t commands 'timedatectl command' _timedatectl_cmds
    else
        local curcontext="$curcontext"
        cmd="${${_timedatectl_cmds[(r)$words[1]:*]%%:*}}"
        if (( $#cmd )); then
            if (( $+functions[_timedatectl_$cmd] )); then
                _timedatectl_$cmd
            else
                _message "no more options"
            fi
        else
            _message "unknown timedatectl command: $words[1]"
        fi
    fi
}

_arguments -s \
    {-h,--help}'[Show this help]' \
    '--version[Show package version]' \
    '--adjust-system-clock[Adjust system clock when changing local RTC mode]' \
    '--no-pager[Do not pipe output into a pager]' \
    '--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' \
    '*::timedatectl commands:_timedatectl_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