我尝试将 PowerShell
设置为我的“Open Git-Shell
”选项,但没有成功。在命令字段中,我设置了以下选项:
命令:
powershell.exe
参数:
-noexit -executionpolicy Unrestricted -command "cd '${filePath}'"
这将以非交互模式启动 PowerShell(即:进程在任务管理器中运行,但 UI 不可见)。我做错了什么?
最佳答案
我尝试使用 cmd.exe
为 SmartGit
中的“Open Git-Shell
”调用 PowerShell
>。我能够通过以下方式获得所需的结果:
命令:
cmd.exe
参数:
/c start powershell.exe -noexit -executionpolicy Unrestricted -command "cd '${filePath}'"
关于powershell - 如何将 PowerShell 设置为我的 SmartGit "Open Git-Shell"命令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26112954/