aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_systemd_machines.fish
diff options
context:
space:
mode:
Diffstat (limited to 'share/functions/__fish_systemd_machines.fish')
-rw-r--r--share/functions/__fish_systemd_machines.fish4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/functions/__fish_systemd_machines.fish b/share/functions/__fish_systemd_machines.fish
new file mode 100644
index 00000000..40f833ad
--- /dev/null
+++ b/share/functions/__fish_systemd_machines.fish
@@ -0,0 +1,4 @@
+# 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 | while read -l a b; echo $a; end
+end