DEV Community

Cover image for How to add Open Windows Terminal in Context Menu
Priya Ranjan Kumar
Priya Ranjan Kumar

Posted on

How to add Open Windows Terminal in Context Menu

The windows terminal is new sleek, fast, customizable and feature packed terminal. It is much more productive than previous Command prompt and PowerShell.

So, if you want to customize the Windows terminal then you can go to this post. The steps have been beautifully curated there.







So, let's get back to adding the Context Menu option

Perquisites

C:\Users\%USERPROFILE%\AppData\Local\Microsoft\WindowsApps\
Enter fullscreen mode Exit fullscreen mode
  • Open Text editor copy and paste the following code into it and save as .reg file.
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Windows terminal here"
"Icon"="C:\\Users\\yourusername\\AppData\\Local\\Microsoft\\WindowsApps\\terminal.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="\"C:\\Users\\yourusername\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe\"  -d \"%V\""

Enter fullscreen mode Exit fullscreen mode
  • Don't forget to replace yourusername with your username like below.
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Windows terminal here"
"Icon"="C:\\Users\\mishr\\AppData\\Local\\Microsoft\\WindowsApps\\terminal.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="\"C:\\Users\\mishr\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe\"  -d \"%V\""

Enter fullscreen mode Exit fullscreen mode

and save as whatevernameyouwant.reg.



  • Run the what_name_you_want.reg file

🤘😎

Alt Text

Windows Terminal

Top comments (2)

Collapse
 
shrikshel profile image
Shrikshel • Edited

This does the trick. Thanks a lot.
Link for icon seems updated, here's updated one: github.com/microsoft/terminal/blob...

Collapse
 
priyaranjankumar profile image
Priya Ranjan Kumar

Yeah Thanks for the link. BTW the version of terminal automatically adds 'open in terminal' to the context menu.
I will suggest you to delete the previous created Registry.😊