diff options
author | Jelte Fennema <github-tech@jeltef.nl> | 2015-01-07 16:39:19 +0100 |
---|---|---|
committer | Konrad Borowski <x.fix@o2.pl> | 2015-01-17 11:51:36 +0100 |
commit | 9e3f9127473c7807b8b9f6c4c2a4d3594113d128 (patch) | |
tree | 013f8d71eb13cdb36837d8b8b550b8e5180c62a0 /share | |
parent | e529b78365e0a808e0b926b673c5297283fe9765 (diff) |
Ignore error message when not on a Gentoo system
Diffstat (limited to 'share')
-rw-r--r-- | share/functions/__fish_print_service_names.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/__fish_print_service_names.fish b/share/functions/__fish_print_service_names.fish index 45d653a7..8b2926ed 100644 --- a/share/functions/__fish_print_service_names.fish +++ b/share/functions/__fish_print_service_names.fish @@ -1,7 +1,7 @@ function __fish_print_service_names -d 'All services known to the system' if test -d /run/systemd/system command systemctl list-units -t service | cut -d ' ' -f 1 | grep '\.service$' | sed -e 's/\.service$//' - else if type -f rc-service + else if type -f rc-service 2> /dev/null command rc-service -l else command ls /etc/init.d |