Personalization Add "Open in Windows Terminal" expandable context menu in Windows 11


  • Staff
Windows_Terminal_banner.png

This tutorial will show you how to add or remove a custom Open in Windows Terminal expandable context menu for all users in Windows 11.

Windows Terminal is a modern host application for the command-line shells you already love, like Command Prompt, PowerShell, and bash (via Windows Subsystem for Linux (WSL)). Its main features include multiple tabs, panes, Unicode and UTF-8 character support, a GPU accelerated text rendering engine, and the ability to create your own themes and customize text, colors, backgrounds, and shortcuts.

Windows 11 includes a Open in Terminal context menu by default when you right click or shift + right click on a folder or folder background, but this does not open Windows Terminal elevated (run as administrator).

The Open in Windows Terminal expandable context menu will allow you to select to open Windows Terminal to the current folder path with the default shell profile, Command Prompt shell profile, or Windows PowerShell shell profile.

You must be signed in as an administrator to add or remove this "Open in Windows Terminal" context menu, but all users can use the context menu.


EXAMPLE: "Open in Windows Terminal" expandable context menu

Show_more_options.png
Open_in_Windows_Terminal.png




Here's How:

1 Do step 2 (add-right click) or step 3 (remove) below for what you would like to do.


2 To Add Right Click "Open in Windows Terminal" Expandable Context Menu

A) Click/tap on the Download button below to download the file below, and go to step 4 below.

Add_Open_in_Windows_Terminal_expandable_context_menu.reg

Download

If you installed PowerShell 7 and would like to add it to this context menu, then you can download and merge the Add_PowerShell_7.reg file below afterwards.

Download

If you installed Ubuntu for WSL and would like to add Ubuntu to this context menu, then you can download and merge the Add_Ubuntu.reg file below afterwards.

Download


(Contents of .reg file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\OpenWTHere]
"MUIVerb"="Open in Windows Terminal"
"Extended"=-
"SubCommands"=""

[HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHere\shell\001flyout]
"MUIVerb"="Default Profile"

[HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHere\shell\001flyout\command]
@="cmd.exe /c start wt.exe -d \"%1\\.\""


[HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHere\shell\002flyout]
"MUIVerb"="Command Prompt"
"Icon"="imageres.dll,-5323"

[HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHere\shell\002flyout\command]
@="cmd.exe /c start wt.exe -p \"Command Prompt\" -d \"%1\\.\""


[HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHere\shell\003flyout]
"MUIVerb"="PowerShell"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOT\Directory\Shell\OpenWTHere\shell\003flyout\command]
@="cmd.exe /c start wt.exe -p \"Windows PowerShell\" -d \"%1\\.\""



[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWTHere]
"MUIVerb"="Open in Windows Terminal"
"Extended"=-
"SubCommands"=""

[HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHere\shell\001flyout]
"MUIVerb"="Default Profile"

[HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHere\shell\001flyout\command]
@="cmd.exe /c start wt.exe -d \"%V\\.\""


[HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHere\shell\002flyout]
"MUIVerb"="Command Prompt"
"Icon"="imageres.dll,-5323"

[HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHere\shell\002flyout\command]
@="cmd.exe /c start wt.exe -p \"Command Prompt\" -d \"%V\\.\""


[HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHere\shell\003flyout]
"MUIVerb"="PowerShell"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOT\Directory\Background\Shell\OpenWTHere\shell\003flyout\command]
@="cmd.exe /c start wt.exe -p \"Windows PowerShell\" -d \"%V\\.\""

3 To Remove "Open in Windows Terminal" Expandable Context Menu

This is the default setting.


A) Click/tap on the Download button below to download the file below, and go to step 4 below.

Remove_Open_in_Windows_Terminal_expandable_context_menu.reg

Download

(Contents of .reg file for reference)
Code:
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\Directory\shell\OpenWTHere]

[-HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWTHere]

4 Save the .reg file to your desktop.

5 Double click/tap on the downloaded .reg file to merge it.

6 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

7 You can now delete the downloaded .reg file if you like.


That's it,
Shawn Brink


 

Attachments

  • Remove_Open_in_Windows_Terminal_expandable_context_menu.reg
    328 bytes · Views: 406
  • Add_Open_in_Windows_Terminal_expandable_context_menu.reg
    2 KB · Views: 481
  • Add_PowerShell_7.reg
    759 bytes · Views: 345
  • Add_Ubuntu.reg
    737 bytes · Views: 340
Last edited:
Back
Top Bottom