mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Ignore error message when not on a Gentoo system
This commit is contained in:
parent
e529b78365
commit
9e3f912747
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue