aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/systemctl.fish
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2015-09-16 23:18:04 +0200
committerGravatar Fabian Homborg <FHomborg@gmail.com>2015-09-16 23:18:04 +0200
commitf86ee20579180a9b8822c42fef8df3fca8ed12c0 (patch)
tree138461b4003d5ce60f9f924ba5ce34c13ab8725d /share/completions/systemctl.fish
parent18a116394d2c02d096c8e07933035bb39e62d8ff (diff)
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
Diffstat (limited to 'share/completions/systemctl.fish')
-rw-r--r--share/completions/systemctl.fish11
1 files changed, 9 insertions, 2 deletions
diff --git a/share/completions/systemctl.fish b/share/completions/systemctl.fish
index 320602b6..296eeeb3 100644
--- a/share/completions/systemctl.fish
+++ b/share/completions/systemctl.fish
@@ -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