Warp是好用的命令行提示工具。
选择不登录模式。
安装后报错如下(粘出来方便检索):
Shell process exited prematurely!
Something went wrong while starting C:\Program Files\PowerShell\7\pwsh.exe and Warpifying it, causing the process to terminate. Warpify script output is displayed here, which may point at a cause.
CLR:Assert failure(PID 8032 [0x00001f60],Thread:2080 [0x820]):!AreShadowStacksEnabled() Il UseSpecialUserModeApc()
File:D:\a\_work\1\s\src\coreclr\vm\threads.cpp:7938 Image:
C:\ProgramFiles\PowerShell\7\pwsh.exe
升级powershell 没用。按错误提示次关键字搜索也没有结果,找到C:\Program Files\PowerShell\7\pwsh.exe启动一闪而过,去启动PowerShell(C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe)又没什么问题。
之前折腾过vs code。 我知道命令行执行窗口有cmd、powershell 等几种。
因为报错的路径不存在,之前在win11上安装过没啥问题。所以考虑是配置的问题。
一项一项的翻,我是个英语渣,多次尝试找到配置位置。
修改后果然可以了。完整配置位置:Features>Session>Default shell for new sessions. 配置项改为:Windows PowerShell。