mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 02:31:18 -03:00
__fish_systemctl_*: use systemctl to generate the list of units
Closes #1804. Note that if systemd is not running, the completion will fail.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
function __fish_systemctl_mounts
|
||||
command find /etc/systemd/system -type f -name '*.mount' -printf '%f\n'
|
||||
command find /usr/lib/systemd/system -type f -name '*.mount' -printf '%f\n'
|
||||
if type -q systemctl
|
||||
systemctl list-unit-files --no-legend --type=mount ^/dev/null | cut -f 1 -d ' '
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user