From: Luka Perkov <luka@openwrt.org>
To: zsh-workers@zsh.org
Cc: Luka Perkov <luka@openwrt.org>
Subject: [PATCH] _systemd: add more system commands
Date: Fri, 13 Sep 2013 20:19:57 +0200 [thread overview]
Message-ID: <1379096397-7133-1-git-send-email-luka@openwrt.org> (raw)
While at it move suspend command so the order of the
sytem commands equals the one in the systemd help.
Signed-off-by: Luka Perkov <luka@openwrt.org>
---
Completion/Unix/Command/_systemd | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/Completion/Unix/Command/_systemd b/Completion/Unix/Command/_systemd
index c9fc38a..1aae468 100644
--- a/Completion/Unix/Command/_systemd
+++ b/Completion/Unix/Command/_systemd
@@ -121,11 +121,14 @@ _hosts_or_user_at_host()
"rescue:Enter system rescue mode"
"emergency:Enter system emergency mode"
"halt:Shut down and halt the system"
- "suspend:Suspend the system"
"poweroff:Shut down and power-off the system"
"reboot:Shut down and reboot the system"
"kexec:Shut down and reboot the system with kexec"
"exit:Ask for user instance termination"
+ "switch-root:Change to a different root file system"
+ "suspend:Suspend the system"
+ "hibernate:Hibernate the system"
+ "hibernate-sleep:Hibernate and suspend the system"
)
if (( CURRENT == 1 )); then
@@ -331,6 +334,13 @@ done
(( $+functions[_systemctl_link] )) || _systemctl_link() { _files }
+(( $+functions[_systemctl_switch-root] )) || _systemctl_switch-root()
+{
+ if (( CURRENT == 2 )); then
+ _directories
+ fi
+}
+
# no systemctl completion for:
# [STANDALONE]='daemon-reexec daemon-reload default dot dump
# emergency exit halt kexec list-jobs list-units
--
1.8.4
next reply other threads:[~2013-09-13 18:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-13 18:19 Luka Perkov [this message]
2013-09-13 19:30 ` Pierre Schmitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1379096397-7133-1-git-send-email-luka@openwrt.org \
--to=luka@openwrt.org \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).