其实zsh的历史补全新版powershell可以用内置的PS-Readline做到,在配置文件加下面这个代码就行。
Set-PSReadLineOption -PredictionSource History