Search code examples
powershellsmartgit

How do I set up PowerShell as my SmartGit "Open Git-Shell" command?


I have tried setting up PowerShell as my "Open Git-Shell" option with no success. In the Command field I have set the following options:

Command:

powershell.exe

Arguments:

-noexit -executionpolicy Unrestricted -command "cd '${filePath}'"

This will launch PowerShell in non-interactive mode (i.e.: the process is running in task manager, but the UI isn't visible). What am I doing wrong?


Solution

  • I played around with using cmd.exe to invoke PowerShell for "Open Git-Shell" in SmartGit. I was able to get the desired result with the following:

    Command:

    cmd.exe
    

    Arguments:

    /c start powershell.exe -noexit -executionpolicy Unrestricted -command "cd '${filePath}'"