diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2015-06-29 20:11:55 +0200 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2015-07-02 14:36:48 +0800 |
commit | 25d19f7d63e54e0fe42dfc4289dcba25eb022ddf (patch) | |
tree | 5d9bd6bbc5bc1fdaec656a729c497275d4856a19 /share/functions/__fish_systemd_machine_images.fish | |
parent | ae58809c9fba0018e3a7a06ffe52801866d8c7a4 (diff) |
Add completions for systemd's machinectl
Diffstat (limited to 'share/functions/__fish_systemd_machine_images.fish')
-rw-r--r-- | share/functions/__fish_systemd_machine_images.fish | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/share/functions/__fish_systemd_machine_images.fish b/share/functions/__fish_systemd_machine_images.fish new file mode 100644 index 00000000..8ff0a69d --- /dev/null +++ b/share/functions/__fish_systemd_machine_images.fish @@ -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 |