summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan Overbruck <mail@duncano.de>2025-01-16 03:51:52 +0100
committerLennart Poettering <lennart@poettering.net>2025-01-16 09:33:15 +0100
commitc8342feb07342b35f6a9a4620f122b8b7a971f46 (patch)
tree8d75e0cbb61ebb0852120a371955a363fc3e6891
parentmeson: enable -Wzero-as-null-pointer-constant (#36028) (diff)
downloadsystemd-c8342feb07342b35f6a9a4620f122b8b7a971f46.tar.xz
systemd-c8342feb07342b35f6a9a4620f122b8b7a971f46.zip
shell-completions: add systemctl sleep
-rw-r--r--shell-completion/bash/systemctl.in2
-rw-r--r--shell-completion/zsh/_systemctl.in1
2 files changed, 2 insertions, 1 deletions
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 )