mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 18:21:16 -03:00
Add completions for systemd's machinectl
This commit is contained in:
committed by
David Adam
parent
ae58809c9f
commit
25d19f7d63
5
share/functions/__fish_systemd_machine_images.fish
Normal file
5
share/functions/__fish_systemd_machine_images.fish
Normal file
@@ -0,0 +1,5 @@
|
||||
# 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
|
||||
function __fish_systemd_machine_images
|
||||
machinectl --no-legend --no-pager list-images | while read -l a b; echo $a; end
|
||||
end
|
||||
Reference in New Issue
Block a user