$56 GRAYBYTE WORDPRESS FILE MANAGER $70

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 93.127.173.88 | ADMIN IP 216.73.216.84
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/usr/share/zsh/site-functions/

HOME
Current File : /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'

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
29 Jun 2022 9.12 AM
root / root
0755
_bootctl
1.075 KB
22 Jun 2018 11.11 AM
root / root
0644
_busctl
2.985 KB
22 Jun 2018 11.11 AM
root / root
0644
_coredumpctl
1.545 KB
22 Jun 2018 11.11 AM
root / root
0644
_curl
13.016 KB
28 Jan 2025 1.43 AM
root / root
0644
_firewalld
18.614 KB
24 Sep 2024 2.51 AM
root / root
0644
_hostnamectl
2.217 KB
22 Jun 2018 11.11 AM
root / root
0644
_journalctl
5.835 KB
22 Jun 2018 11.11 AM
root / root
0644
_kernel-install
0.636 KB
22 Jun 2018 11.11 AM
root / root
0644
_libinput
7.484 KB
3 Nov 2020 4.42 AM
root / root
0644
_localectl
3.501 KB
22 Jun 2018 11.11 AM
root / root
0644
_loginctl
5.668 KB
22 Jun 2018 11.11 AM
root / root
0644
_parallel
0.117 KB
25 Dec 2024 12.17 AM
root / root
0644
_sd_hosts_or_user_at_host
0.113 KB
22 Jun 2018 11.11 AM
root / root
0644
_sd_machines
0.347 KB
22 Jun 2018 11.11 AM
root / root
0644
_sd_outputmodes
0.282 KB
22 Jun 2018 11.11 AM
root / root
0644
_sd_unit_files
0.249 KB
22 Jun 2018 11.11 AM
root / root
0644
_systemctl
15.24 KB
17 Dec 2024 4.00 AM
root / root
0644
_systemd
3.749 KB
22 Jun 2018 11.11 AM
root / root
0644
_systemd-analyze
2.993 KB
22 Jun 2018 11.11 AM
root / root
0644
_systemd-delta
0.551 KB
22 Jun 2018 11.11 AM
root / root
0644
_systemd-inhibit
1.036 KB
22 Jun 2018 11.11 AM
root / root
0644
_systemd-resolve
2.275 KB
22 Jun 2018 11.11 AM
root / root
0644
_systemd-run
3.063 KB
22 Jun 2018 11.11 AM
root / root
0644
_systemd-tmpfiles
0.719 KB
22 Jun 2018 11.11 AM
root / root
0644
_timedatectl
1.994 KB
22 Jun 2018 11.11 AM
root / root
0644
_udevadm
5.856 KB
22 Jun 2018 11.11 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF