mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
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:
parent
18a116394d
commit
f86ee20579
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue