mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
00e0ed64bc
Closes #1804. Note that if systemd is not running, the completion will fail.
5 lines
162 B
Fish
5 lines
162 B
Fish
function __fish_systemctl_services
|
|
if type -q systemctl
|
|
systemctl list-unit-files --no-legend --type=service ^/dev/null | cut -f 1 -d ' '
|
|
end
|
|
end
|