Add completions for systemd's machinectl

This commit is contained in:
Fabian Homborg
2015-06-29 20:11:55 +02:00
committed by David Adam
parent ae58809c9f
commit 25d19f7d63
3 changed files with 122 additions and 0 deletions

View 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