PsHosts appears to largely "just work" in PSCore on Linux, but tab completion isn't working.
Taking a quick look, it's obvious why: PsHosts currently uses the older technique of monkey patching $function:tabexpansion2 to append a script but the string replacement uses `r`n to match the line ending.
Rather than make the hack worse, it would be better to add support for Register-ArgumentCompleter, falling back to the old method to maintain support of PS3-4.
PsHosts appears to largely "just work" in PSCore on Linux, but tab completion isn't working.
Taking a quick look, it's obvious why: PsHosts currently uses the older technique of monkey patching
$function:tabexpansion2
to append a script but the string replacement uses`r`n
to match the line ending.Rather than make the hack worse, it would be better to add support for Register-ArgumentCompleter, falling back to the old method to maintain support of PS3-4.