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.😊

The AI Brief

AI generated git commit messages

Minimize the struggle of remembering what you just coded. AI-generated commits make it easier to manage projects and keep track of changes. The Nutlope/aicommits project demonstrates how AI can improve commit messages.

I open sourced an AI that creates any UI in seconds

Make AI-generated user interfaces a breeze. This open-source project harnesses the power of generative AI technologies like chatGPT to create versatile, quick, and intuitive UI components.

Use AI to commit like a PRO in 1 second

Upgrade your commit message game with AI. Boost your productivity by using ChatGPT to generate commit messages and avoid context switching. OpenCommit is an open-source library that helps you achieve this easily.

Build your own ChatGPT starter kit

Train AI models on custom data for improved domain-specific knowledge. Combine the power of WebView technologies and this starter kit to train your ChatGPT model on specific websites, allowing for better-optimized outcomes.