fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
a53db7256
master
1# localization: skip(private) 2function __fish_print_service_names -d'All services known to the system' 3if test -d /run/systemd/system# Systemd systems 4# For the `service` command, this needs to be without the type suffix 5# on Debian at least 6__fish_systemctl_services | string replace -r'.service$' '' 7else if type -f rc-service2> /dev/null# OpenRC (Gentoo) 8command rc-service -l 9else if test -d /etc/init.d# SysV on Debian and other linuxen 10string replace'/etc/init.d/' '' -- /etc/init.d/* 11else # Freebsd 12command service -l 13end 14end