mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 10:30:28 +08:00
Revert "Move __fish_systemd_machines into machinectl completion script"
This reverts commit 9c15b5b7a4
.
This commit is contained in:
parent
f136d634eb
commit
efb72f1f91
|
@ -1,11 +1,3 @@
|
||||||
function __fish_systemd_machine_images
|
|
||||||
# Like for running machines, I'm assuming machinectl doesn't allow spaces in image names
|
|
||||||
# This does not include the special image ".host" since it isn't valid for most operations
|
|
||||||
machinectl --no-legend --no-pager list-images | while read -l a b
|
|
||||||
echo $a
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
complete -f -e -c machinectl
|
complete -f -e -c machinectl
|
||||||
|
|
||||||
set -l commands list status show start login enable disable poweroff reboot \
|
set -l commands list status show start login enable disable poweroff reboot \
|
||||||
|
|
6
share/functions/__fish_systemd_machines.fish
Normal file
6
share/functions/__fish_systemd_machines.fish
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# It seems machinectl will eliminate spaces from machine names so we don't need to handle that
|
||||||
|
function __fish_systemd_machines
|
||||||
|
machinectl --no-legend --no-pager list --all | while read -l a b
|
||||||
|
echo $a
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user