From c4d708c3aafbe5c524a02ccc25e715700dd3664e Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=9B=AA=E5=8F=B6?= <93505720+Vescrity@users.noreply.github.com> Date: Sat, 20 Sep 2025 23:03:35 +0800 Subject: [PATCH] zsh-completion: add completion for `freeze`, `thaw`, `condstop` --- shell-completion/zsh/_systemctl.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.47.3