项目地址:https://github.com/microsoft/terminal/releases
下载安装:
添加到右键:
参考:https://blog.csdn.net/jiunian_2761/article/details/121367407
但是无法安装,报错:
.\install.ps1 : 无法运行脚本“install.ps1”,因为该脚本包含用于 Windows PowerShell 6.0 的 "#requires" 语句。该脚本需要
使用的 Windows PowerShell 版本与当前运行的 Windows PowerShell 版本 5.1.19041.1682 不匹配。
所在位置 行:1 字符: 1
+ .\install.ps1
+ ~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (install.ps1:String) [], ScriptRequiresException
+ FullyQualifiedErrorId : ScriptRequiresUnmatchedPSVersion
升级powershell 7 ,地址:https://docs.microsoft.com/zh-cn/powershell/scripting/whats-new/differences-from-windows-powershell?view=powershell-7.2
安装文件:
然后使用管理员打开powershell,输入:
Set-ExecutionPolicy Bypass -Scope Process -Force;
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/qianfanguojin/windowsterminal-menu/master/install.ps1'))
即可