2017-12-11 14:54:23 +00:00
|
|
|
|
2020-01-21 23:37:32 +00:00
|
|
|
function __fish_get_vmctl_vms
|
|
|
|
for line in (vmctl status | string match -e -v "MAXMEM");
|
|
|
|
set a (string split " " $line)
|
|
|
|
and printf "%s " $a[-1]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-12-11 14:54:23 +00:00
|
|
|
complete -c vmctl -xa 'console create load log reload reset start status stop pause unpause send receive' -n 'not __fish_seen_subcommand_from list console create load log reload reset start status stop pause unpause send receive'
|
2020-01-21 23:37:32 +00:00
|
|
|
complete -c vmctl -n '__fish_seen_subcommand_from console reload reset start status stop pause unpause send receive' -xa (__fish_get_vmctl_vms)
|
2017-12-11 14:54:23 +00:00
|
|
|
|