From c8342feb07342b35f6a9a4620f122b8b7a971f46 Mon Sep 17 00:00:00 2001 From: Duncan Overbruck Date: Thu, 16 Jan 2025 03:51:52 +0100 Subject: [PATCH] shell-completions: add systemctl sleep --- shell-completion/bash/systemctl.in | 2 +- shell-completion/zsh/_systemctl.in | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in index f2219f23ea..c1231653b6 100644 --- a/shell-completion/bash/systemctl.in +++ b/shell-completion/bash/systemctl.in @@ -229,7 +229,7 @@ _systemctl () { [JOBS]='cancel' [ENVS]='set-environment unset-environment import-environment' [STANDALONE]='daemon-reexec daemon-reload default whoami - emergency exit halt hibernate hybrid-sleep + emergency exit halt hibernate hybrid-sleep sleep suspend-then-hibernate kexec soft-reboot list-jobs list-sockets list-timers list-units list-unit-files poweroff reboot rescue show-environment suspend get-default diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in index a5a16b3fdb..0000147fe4 100644 --- a/shell-completion/zsh/_systemctl.in +++ b/shell-completion/zsh/_systemctl.in @@ -105,6 +105,7 @@ "hibernate:Hibernate the system" "hybrid-sleep:Hibernate and suspend the system" "suspend-then-hibernate:Suspend the system for a period of time, and then hibernate it" + "sleep:Put the system to sleep" ) local -a groups=( unit machine unit_file job environment manager_state system )