dm0 / rpms / systemd

Forked from rpms/systemd 5 years ago
Clone
46a556f
From aeca88f2ff7703c224f47aa2f15c611f7991e055 Mon Sep 17 00:00:00 2001
46a556f
From: Dave Reisner <dreisner@archlinux.org>
46a556f
Date: Thu, 19 Sep 2013 18:00:36 -0400
46a556f
Subject: [PATCH] completion/systemctl: add missing list-sockets verb
46a556f
46a556f
Conflicts:
46a556f
	shell-completion/bash/systemctl
46a556f
	shell-completion/zsh/_systemctl
46a556f
---
46a556f
 shell-completion/bash/systemctl             | 2 +-
46a556f
 shell-completion/systemd-zsh-completion.zsh | 1 +
46a556f
 2 files changed, 2 insertions(+), 1 deletion(-)
46a556f
46a556f
diff --git a/shell-completion/bash/systemctl b/shell-completion/bash/systemctl
46a556f
index ce46d50..bafaa18 100644
46a556f
--- a/shell-completion/bash/systemctl
46a556f
+++ b/shell-completion/bash/systemctl
46a556f
@@ -123,7 +123,7 @@ _systemctl () {
46a556f
                      [ENVS]='set-environment unset-environment'
46a556f
                [STANDALONE]='daemon-reexec daemon-reload default dump
46a556f
                              emergency exit halt hibernate hybrid-sleep kexec list-jobs
46a556f
-                             list-units list-unit-files poweroff reboot rescue
46a556f
+                             list-sockets list-units list-unit-files poweroff reboot rescue
46a556f
                              show-environment suspend'
46a556f
                      [NAME]='snapshot load'
46a556f
                      [FILE]='link'
46a556f
diff --git a/shell-completion/systemd-zsh-completion.zsh b/shell-completion/systemd-zsh-completion.zsh
46a556f
index 46a6a19..0205d8b 100644
46a556f
--- a/shell-completion/systemd-zsh-completion.zsh
46a556f
+++ b/shell-completion/systemd-zsh-completion.zsh
46a556f
@@ -323,6 +323,7 @@ _outputmodes() {
46a556f
 {
46a556f
   local -a _systemctl_cmds
46a556f
   _systemctl_cmds=(
46a556f
+    "list-sockets:List sockets"
46a556f
     "list-units:List units"
46a556f
     "start:Start (activate) one or more units"
46a556f
     "stop:Stop (deactivate) one or more units"