简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM