From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26165 invoked by alias); 13 Sep 2013 18:31:11 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 31723 Received: (qmail 23098 invoked from network); 13 Sep 2013 18:30:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at openwrt.org does not designate permitted sender hosts) X-Virus-Scanned: at arrakis.dune.hu From: Luka Perkov To: zsh-workers@zsh.org Cc: Luka Perkov Subject: [PATCH] _systemd: add more system commands Date: Fri, 13 Sep 2013 20:19:57 +0200 Message-Id: <1379096397-7133-1-git-send-email-luka@openwrt.org> X-Mailer: git-send-email 1.8.4 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 --- 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