Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add Windows Terminal to context menu on Windows 10? [closed]

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 ?

like image 814
Steev James Avatar asked Apr 24 '20 07:04

Steev James


People also ask

How do I open the Windows Terminal context menu?

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.

How do I open terminal on Windows 10?

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.


2 Answers

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.

enter image description here

There are other layouts (mini and flat at this moment).

Uninstall the menu items are also easy with uninstall.ps1.

like image 96
Lex Li Avatar answered Oct 22 '22 12:10

Lex Li


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. Win-X Menu with Windows Terminal

like image 40
Nico Nekoru Avatar answered Oct 22 '22 10:10

Nico Nekoru