summaryrefslogtreecommitdiff
path: root/shell-completion/bash
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-14 19:24:46 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-15 10:06:12 -0400
commitc0a67aef31bb9716617ffe150ca8be19c5df203e (patch)
tree51b6df6293f4a069e14747b8d84936e1b1e97ec5 /shell-completion/bash
parentae2db4e7e868fb89f5053a962a3a43337ddfd4e0 (diff)
shell-completion: restore completion for -p
It was broken since systemd was moved out of /bin. For zsh it was never there.
Diffstat (limited to 'shell-completion/bash')
-rw-r--r--shell-completion/bash/.gitignore1
-rw-r--r--shell-completion/bash/systemctl.in (renamed from shell-completion/bash/systemctl)4
2 files changed, 3 insertions, 2 deletions
diff --git a/shell-completion/bash/.gitignore b/shell-completion/bash/.gitignore
new file mode 100644
index 0000000000..016e09d1e7
--- /dev/null
+++ b/shell-completion/bash/.gitignore
@@ -0,0 +1 @@
+/systemctl
diff --git a/shell-completion/bash/systemctl b/shell-completion/bash/systemctl.in
index e1c842006e..4beec4e13f 100644
--- a/shell-completion/bash/systemctl
+++ b/shell-completion/bash/systemctl.in
@@ -24,8 +24,8 @@ __systemctl() {
__systemd_properties() {
local mode=$1
- { __systemctl -a $mode show;
- systemd --dump-configuration-items; } |
+ { __systemctl $mode show --all;
+ @rootlibexecdir@/systemd --dump-configuration-items; } |
while IFS='=' read -r key value; do
[[ $value ]] && echo "$key"
done