/usr/share/zsh/site-functions
NameSizeModeActions
_bluetoothctl24400644editdlrm
_bootctl11010644editdlrm
_busctl30570644editdlrm
_coredumpctl15820644editdlrm
_curl134280644editdlrm
_firewalld190610644editdlrm
_hostnamectl22700644editdlrm
_imunify360_agent153830644editdlrm
_journalctl59750644editdlrm
_kernel-install6510644editdlrm
_localectl35850644editdlrm
_loginctl58040644editdlrm
_sd_hosts_or_user_at_host1160644editdlrm
_sd_machines3550644editdlrm
_sd_outputmodes2890644editdlrm
_sd_unit_files2550644editdlrm
_systemctl156060644editdlrm
_systemd38390644editdlrm
_systemd-analyze30650644editdlrm
_systemd-delta5640644editdlrm
_systemd-inhibit10610644editdlrm
_systemd-resolve23300644editdlrm
_systemd-run31360644editdlrm
_systemd-tmpfiles7360644editdlrm
_timedatectl20420644editdlrm
_udevadm59970644editdlrm
Edit: /usr/share/zsh/site-functions/_systemd-inhibit (1061B)
#compdef systemd-inhibit # SPDX-License-Identifier: LGPL-2.1+ _systemd_inhibit_command(){ if (( CURRENT == 1 )); then compset -q _normal else local n=${words[(b:2:i)[^-]*]} if (( n <= CURRENT )); then compset -n $n _alternative \ 'files:file:_files' \ 'commands:command:_normal' && return 0 fi _default fi } _inhibit_what() { local _inhibit _inhibit=(shutdown sleep idle handle-power-key handle-suspend-key handle-hibernate-key handle-lid-switch) _values -s : "${_inhibit[@]}" } _arguments \ {-h,--help}'[Show this help]' \ '--version[Show package version]' \ '--what=[Operations to inhibit]:options:_inhibit_what' \ '--who=[A descriptive string who is inhibiting]:who is inhibiting:' \ '--why=[A descriptive string why is being inhibited]:reason for the lock:' \ '--mode=[One of block or delay]:lock mode:( block delay )' \ '--list[List active inhibitors]' \ '*:commands:_systemd_inhibit_command'