Files
fish-shell/share/functions/__fish_systemd_machine_images.fish
Carl Andersson 7a668fb17e Unset SYSTEMD_COLORS for systemd completion
Fixes an issue where systemctl and other systemd commands completions are prefixed by ANSI color escape codes
2025-05-07 18:23:51 -07:00

11 lines
399 B
Fish

# 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
# We don't want to complete with ANSI color codes
set -lu SYSTEMD_COLORS
machinectl --no-legend --no-pager list-images | while read -l a b
echo $a
end
end