How to add Windows Terminal to the Windows Explorer context menu as “👩‍💻 Windows Terminal Here” ❔

The Windows context menu option ‘👩‍💻 Windows Terminal Here’ is handy to open Windows Terminal from Windows or Windows Explorer, في حين الحفاظ على نفس الطريق.
 

This tutorial assumes that Windows PowerShell is run as default when Windows Terminal is started

  1. Edit the registry as follows…

    بدء تشغيل محرر التسجيل

    فوز مفتاح + R -> regedit -> Click OK

    عرض شريط العناوين في محرر التسجيل إذا لم تكن تظهر بالفعل

    View -> Address Bar

     

  2. Add the first registry entry to create the icon in the menu…

    مسار التسجيل: HKEY_CLASSES_ROOT\Directory\Background\shell

    Right click shell -> New -> Key

    اسم المفتاح Terminal

    اسم المفتاح (افتراضي) اسم المفتاح Windows Terminal Here

    Right click the new key Terminal -> New -> String

    Name the new string Icon

    Download the Windows Terminal Icon…

    Windows Terminal Icon

    Open the Icon string and set the value as follows replacing {path to icon} مع المسار الخاص بك:

    {path to icon}terminal.ico

     

  3. إضافة إدخال التسجيل الثاني

    مسار التسجيل: HKEY_CLASSES_ROOT\Directory\Background\shell\Terminal

    Right click Terminal -> New -> Key

    Name the new key command

    في القيادة, set the value of (افتراضي):

    wt -d .

     

  4. إضافة إدخال التسجيل الثالث

    مسار التسجيل: HKEY_CLASSES_ROOT\Directory\shell

    Right click shell -> New -> Key

    اسم المفتاح Terminal

    اسم المفتاح (افتراضي) اسم المفتاح Windows Terminal Here

    Right click the new key Terminal -> New -> String

    Name the new string Icon

    فتح أيقونة وتعيين القيمة كما يلي استبدال {path to icon} مع المسار الخاص بك:

    {path to icon}terminal.ico

     

  5. إضافة إدخال التسجيل الرابع

    مسار التسجيل: HKEY_CLASSES_ROOT\Directory\shell\Terminal

    Right click Terminal -> New -> Key

    In the new command key, تعيين قيمة افتراضي:

    wt -d .

     

قائمة السياق الآن ينبغي أن يعمل. Right click on the desktop and click Windows Terminal Here. Windows Terminal should open with PowerShell with the present working directory as your desktop.