Closed Anmol-sudo closed 1 day ago
Hello, @Anmol-sudo! Thanks for the report, but just to give you a heads-up both PowerShell 5 and PowerShell 7 are on the path by default, it is not necessary to hardcode the paths as their respective entries are added when installed (see attached screenshot):
Additionally, this happens if you set PowerShell 7 as the default for Windows Terminal and then uninstall PowerShell 7 using a program like BCUninstaller, as uninstalling PowerShell 7 would remove it from your path, even if the path entry for it remains.
Can you please run Get-Command powershell
and Get-Command pwsh
in PowerShell 5 and share the results?
After using this feature in winutil
Winutil sets the command line path for powershell7 in strings in windows terminal which is wrong, the correct command line pathshould be without strings. So i fixed it
In Windows Terminal winutil sets the path like this for powershell7 which is wrong, the correct should be without strings. So i fixed it
I'm glad you fixed it on your own! If the fix you proposed works as intended, just be patient, and eventually, someone will test and approve it.
Thanks
Thanks, I think the ctrl+shift+3 is the Windows terminal problem not the winutil problem, u can reset the terminal tho
It's more on me than anything else, I won't report it as it's caused by user error, I am fixing that now, this PR should remain focused on the initial topic.
Type of Change
Description
This pull request addresses an issue with the Windows Terminal configuration in the Invoke-WPFTweakPS7 function. Previously, the function was unable to correctly locate or interact with the PowerShell 7 installation due to an incorrect path.
The changes include:
These modifications ensure proper functionality of PowerShell 7 related tweaks and improve the reliability of PowerShell 7 operations in the winutil script.
Testing
I have tested these changes by:
Impact
This fix will improve the user experience for those using the PowerShell 7 tweak, ensuring that their Windows Terminal is correctly configured. It also adds robustness to the script by improving error handling.
Additional Information
This change does not introduce any new dependencies and should be backwards compatible with existing setups.
Checklist