mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 07:24:51 +08:00
44d13869ad
Disable php completion for the 4th part of the command, since php-eselect is differently designed and causes errors Closes #1131.
11 lines
334 B
Fish
11 lines
334 B
Fish
function __fish_print_service_names -d 'All services known to the system'
|
|
if type -f systemctl >/dev/null
|
|
command systemctl list-units -t service | cut -d ' ' -f 1 | grep '\.service$' | sed -e 's/\.service$//'
|
|
else if type -f rc-service
|
|
command rc-service -l
|
|
else
|
|
command ls /etc/init.d
|
|
end
|
|
end
|
|
|