@pwsh7配置自动补全
pwsh7安装PSReadLine智能补全插件
开启powershell远程执行权限
# 开启powershell远程执行权限
Set-ExecutionPolicy RemoteSigned
# 同意更改 输入Y
检测是否有配置好文件
# 检测是否有配置好文件
Test-path $profile
如果为false手动创建profile
# 手动创建profile
New-item –type file –force $profile
# 使用记事本打开profile文件
notepad $profile
将下面的内容粘贴到profile
中;
# Shows navigable menu of all options when hitting Tab
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
# Autocompletion for arrow keys
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
# auto suggestions
安装PSReadLine自动补全
# 安装PSReadLine
初始化PSReadLine
# 初始化
重开pwsh7,使用自动补全