目前,nvim 使用的默认 shell 是cmd.exe我尝试通过在 nvim 配置中将 shell 设置为 powershell 来更改它,但这不起作用,所以我在 nvim 命令行中尝试了以下命令:
:let &shell = 'path/to/powershell.exe'
Run Code Online (Sandbox Code Playgroud)
Echo shell 命令输出 powershell 路径,当我执行时:terminal它打开了一个powershell选项卡,但退出并重新打开 nvim 后它仍在使用cmd.exe
如何将默认 shell 永久更改为 powershell?