[systemd-commits] 2 commits - Makefile.am shell-completion/zsh
Zbigniew JÄdrzejewski-Szmek
zbyszek at kemper.freedesktop.org
Fri Mar 14 21:33:08 PDT 2014
Makefile.am | 3 ++-
shell-completion/zsh/_sd_machines | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 3a450ec5c6adf3057bcedd6cc19c10617abc35a5
Author: Wieland Hoffmann <themineo at gmail.com>
Date: Mon Mar 10 15:17:32 2014 +0100
_sd_machines: Use machinectl --no-legend
Otherwise bogus entries from the header and footer would show up in the
completion list.
diff --git a/shell-completion/zsh/_sd_machines b/shell-completion/zsh/_sd_machines
index 1d64d13..a0039ee 100644
--- a/shell-completion/zsh/_sd_machines
+++ b/shell-completion/zsh/_sd_machines
@@ -1,6 +1,6 @@
#autoload
__get_machines () {
- machinectl --full --no-pager list | {while read -r a b; do echo $a; done;};
+ machinectl --full --no-legend --no-pager list | {while read -r a b; do echo $a; done;};
}
local -a _machines
commit d895500c478c6ad7904905bb4c08176d5a6c0763
Author: Wieland Hoffmann <themineo at gmail.com>
Date: Mon Mar 10 15:17:31 2014 +0100
zsh completion: Install _sd_machines with _machinectl
_machinectl uses _sd_machines to provide a list of all available
machines.
diff --git a/Makefile.am b/Makefile.am
index 60cb991..9e01cd5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4067,7 +4067,8 @@ dist_dbuspolicy_DATA += \
src/machine/org.freedesktop.machine1.conf
dist_zshcompletion_DATA += \
- shell-completion/zsh/_machinectl
+ shell-completion/zsh/_machinectl \
+ shell-completion/zsh/_sd_machines
SYSTEM_UNIT_ALIASES += \
systemd-machined.service dbus-org.freedesktop.machine1.service
More information about the systemd-commits
mailing list