-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminal no longer auto-generates a profile for PowerShell 7 when installed via winget. #18618
Comments
Another user reported this issue on the PowerShell GitHub repository 2 days ago (PowerShell/PowerShell#21289 (comment)). This was not an issue until recently, as it was working as expected only a few weeks ago. |
When you Install PowerShell 7 via the releases section of the PowerShell repository a profile is generated. The specific release I tested ( |
Hello. I reinstalled Windows and was surprised it doesn't do this anymore |
Same thing for me. Just did a clean Windows install, then installed PowerShell from an elevated cmd.exe prompt using winget. When I open Terminal there is no profile added. |
I have the same problem — fresh Windows installation with PowerShell installed via winget. There is a working workaround for this issue: you can simply add the following entry to your profiles list in {
"commandline": "pwsh.exe",
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"hidden": false,
"name": "PowerShell"
} The issue with finding PowerShell might be related to the changed name of the PowerShell package in winget (it used to be called PowerShell Core). I also tried using a profile from my other computer, but it didn’t work. The profile in {
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"hidden": false,
"name": "PowerShell",
"source": "Windows.Terminal.PowershellCore"
} It seems that Windows.Terminal.PowershellCore does not work for new installations of PowerShell using winget. |
Related issue we are tracking in the PowerShell repo PowerShell/PowerShell#25068 |
@mbrzakala we merged a potential fix 2 hours ago, can you try to uninstall and reinstall via winget again and see if that works? |
Out of curiosity, was the fix to revert default installation via winget to the non-portable version? |
@StevenBucher98 After reinstalation everything works perfect. Thank you! |
@ninbura I've reinstalled both PowerShell and Windows Terminal using the built-in terminal in Visual Studio Code. I used the standard winget packages: Microsoft.PowerShell and Microsoft.WindowsTerminal |
@StevenBucher98 Thanks for looking into this! Closing as External! |
Windows Terminal version
1.21.10351.0
Windows build number
Microsoft Windows NT 10.0.26100.0
Other Software
No response
Steps to reproduce
Expected Behavior
When PowerShell 7 is installed via winget, Microsoft Terminal should automatically generate a profile for it.
Actual Behavior
When PowerShell 7 is installed via winget, Microsoft Terminal does not generate a profile for it.
The text was updated successfully, but these errors were encountered: