Microsoft released Windows terminal as a Microsoft Store app. How to add it to the context menu or replace 'Open Powershell window here' with it ?
By default, Windows Terminal adds a context menu command, Open in Windows Terminal, to the right-click menu in File Explorer. It allows opening Windows Terminal to the current folder with one click. The same also works for the Terminal Preview version which is also available for interested users.
The default key combination to invoke it is Ctrl + Shift + P . You can also open it using the Command palette button in the dropdown menu in Windows Terminal Preview.
There might have been several approaches discussed everywhere, but none of them is up-to-date nor offers flexibility. So I started a new open source project and provided two PowerShell scripts to help.
https://github.com/lextm/windowsterminal-shell
You can run install.ps1
as administrator in PowerShell 7 to easily add the default
layout.
There are other layouts (mini
and flat
at this moment).
Uninstall the menu items are also easy with uninstall.ps1
.
The Win-X Menu shortcuts are stored in %LOCALAPPDATA%\Microsoft\Windows\WinX
and in the Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ShellCompatibility\InboxApp
part of the registry, but the file explorer option is the one that really dictates what happens in the Win-X menu. I do not suggest just adding and changing stuff in the WinX
folder because you could mess things up, however, the winaero.com/comment.php?comment.news.30 app in the link provides a way in which you wouldn't mess it up. Either way, you should put "%programfiles%\WindowsApps\Microsoft.WindowsTerminal_0.11.1121.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe"
in either a shortcut in the WinX folder, or in the app named accordingly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With