fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerMark private functions that don't need localizationa53db7256

master
607 B14 linesraw
1# localization: skip(private)
2function __fish_print_service_names -d 'All services known to the system'
3    if 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$' ''
7    else if type -f rc-service 2>/dev/null # OpenRC (Gentoo)
8        command rc-service -l
9    else if test -d /etc/init.d # SysV on Debian and other linuxen
10        string replace '/etc/init.d/' '' -- /etc/init.d/*
11    else # Freebsd
12        command service -l
13    end
14end