]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
zsh-completion: add completion for `freeze`, `thaw`, `condstop`
author雪叶 <93505720+Vescrity@users.noreply.github.com>
Sat, 20 Sep 2025 15:03:35 +0000 (23:03 +0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 22 Sep 2025 10:55:29 +0000 (11:55 +0100)
shell-completion/zsh/_systemctl.in

index a74cd8de398ddad81af4b67b23f95f4305be0d70..828e74c2af15d9267293eaa85473587528930029 100644 (file)
@@ -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