blob: 8b2926ed24b2836ecf5d400a7b6ad43325791e4a (
plain)
1
2
3
4
5
6
7
8
9
|
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 2> /dev/null
command rc-service -l
else
command ls /etc/init.d
end
end
|