From: 雪叶 <93505720+Vescrity@users.noreply.github.com> Date: Sat, 20 Sep 2025 15:03:35 +0000 (+0800) Subject: zsh-completion: add completion for `freeze`, `thaw`, `condstop` X-Git-Tag: v259-rc1~474 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4d708c3aafbe5c524a02ccc25e715700dd3664e;p=thirdparty%2Fsystemd.git zsh-completion: add completion for `freeze`, `thaw`, `condstop` --- diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in index a74cd8de398..828e74c2af1 100644 --- a/shell-completion/zsh/_systemctl.in +++ b/shell-completion/zsh/_systemctl.in @@ -35,6 +35,8 @@ "reset-failed:Reset failed state for all, one, or more units" "list-dependencies:Show unit dependency tree" "clean:Remove configuration, state, cache, logs or runtime data of units" + "freeze:Freeze one or more units specified on the command line using cgroup freezer" + "thaw:Thaw (unfreeze) one or more units specified on the command line." "bind:Bind mount a path from the host into a unit's namespace" "mount-image:Mount an image from the host into a unit's namespace" "whoami:Determines as part of which unit the command is being invoked" @@ -315,7 +317,7 @@ done } # Completion functions for STOPPABLE_UNITS -for fun in stop kill try-restart condrestart ; do +for fun in stop condstop kill try-restart condrestart freeze thaw; do (( $+functions[_systemctl_$fun] )) || _systemctl_$fun() { local _sys_active_units; _systemctl_active_units