Zsolt László Zsolt László - 2 months ago 10
Git Question

How to make Git Shell open newer version of PowerShell on Windows 7

My problem is that you can see in the title of this question: I can't force Git Shell to open the newer version of PowerShell, so I get the old and ugly command line after starting Git Shell. My OS is Windows 7, downloaded and installed GitHub for Windows and I installed the newest version of PowerShell recently (which works perfectly when I open the actual PowerShell).

Furthermore, after starting Git Shell, but before entering the directory of any repository, the title of the CMD window says that C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe is running. So, maybe the real question could be: how should I make it run another, newer "PowerShell" instead (provide another path for Git Shell) and where is this located at all?

Anyone any idea, please?

Answer

There is (usually) only a single version of the PowerShell console installed on your computer, it is at C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe even if it is PowerShell Vs.5

You can verify in Task Manager that both PowerShell instances are using the same binary.

If you see a different background color or a different/smaller font it's because of the console settings, which you can change in the properties of the window.