1 2 3 4 5 6 7
function __fish_print_debian_services --description 'Prints services installed' for service in /etc/init.d/* if [ -x $service ] basename $service end end end