systemctl completions: Support systemd in /lib

Debian has not merged /usr/lib and /lib, so they install the `systemd`
binary at /lib/systemd/systemd.

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790671
This commit is contained in:
Fabian Homborg 2015-09-16 23:18:04 +02:00
parent 18a116394d
commit f86ee20579

View file

@ -9,9 +9,16 @@ function __fish_systemd_properties
if type -q /usr/lib/systemd/systemd
set IFS "="
/usr/lib/systemd/systemd --dump-configuration-items | while read key value
if not test -z $value
echo $key
if not test -z $value
echo $key
end
end
else if type -q /lib/systemd/systemd # Debian has not merged /lib and /usr/lib
set IFS "="
/lib/systemd/systemd --dump-configuration-items | while read key value
if not test -z $value
echo $key
end
end
end
end