SILENT KILLERPanel

Current Path: > > usr > share > zsh > site-functions


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //usr/share/zsh/site-functions

NameTypeSizeLast ModifiedActions
_bootctl File 1101 bytes June 22 2018 11:11:49.
_busctl File 3057 bytes June 22 2018 11:11:49.
_coredumpctl File 1582 bytes June 22 2018 11:11:49.
_curl File 13328 bytes January 28 2025 01:43:09.
_firewalld File 19061 bytes March 11 2025 09:51:09.
_hostnamectl File 2270 bytes June 22 2018 11:11:49.
_journalctl File 5975 bytes June 22 2018 11:11:49.
_kernel-install File 651 bytes June 22 2018 11:11:49.
_libinput File 7664 bytes November 03 2020 04:42:35.
_localectl File 3585 bytes June 22 2018 11:11:49.
_loginctl File 5804 bytes June 22 2018 11:11:49.
_parallel File 120 bytes December 25 2024 00:17:11.
_sd_hosts_or_user_at_host File 116 bytes June 22 2018 11:11:49.
_sd_machines File 355 bytes June 22 2018 11:11:49.
_sd_outputmodes File 289 bytes June 22 2018 11:11:49.
_sd_unit_files File 255 bytes June 22 2018 11:11:49.
_systemctl File 15606 bytes April 22 2025 01:58:20.
_systemd File 3839 bytes June 22 2018 11:11:49.
_systemd-analyze File 3065 bytes June 22 2018 11:11:49.
_systemd-delta File 564 bytes June 22 2018 11:11:49.
_systemd-inhibit File 1061 bytes June 22 2018 11:11:49.
_systemd-resolve File 2330 bytes June 22 2018 11:11:49.
_systemd-run File 3136 bytes June 22 2018 11:11:49.
_systemd-tmpfiles File 736 bytes June 22 2018 11:11:49.
_timedatectl File 2042 bytes June 22 2018 11:11:49.
_udevadm File 5997 bytes June 22 2018 11:11:49.

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

SILENT KILLER Tool