mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-04 12:41:16 -03:00
Fixes an issue where systemctl and other systemd commands completions are prefixed by ANSI color escape codes
10 lines
307 B
Fish
10 lines
307 B
Fish
# It seems machinectl will eliminate spaces from machine names so we don't need to handle that
|
|
function __fish_systemd_machines
|
|
# We don't want to complete with ANSI color codes
|
|
set -lu SYSTEMD_COLORS
|
|
|
|
machinectl --no-legend --no-pager list --all | while read -l a b
|
|
echo $a
|
|
end
|
|
end
|