shell-completion: restore completion for -p

It was broken since systemd was moved out of /bin.

For zsh it was never there.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2014-07-15 10:06:12 -04:00
parent ae2db4e7e8
commit c0a67aef31
5 changed files with 35 additions and 5 deletions
+1
View File
@@ -0,0 +1 @@
/systemctl
@@ -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