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

The Windows context menu option ‘👩‍💻 Windows Terminal Hereis 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

    เริ่มโปรแกรม Registry Editor

    ชนะที่สำคัญ + R -> regedit -> คลิกตกลง

    แสดงแถบที่อยู่ในโปรแกรม Registry Editor หากยังไม่ได้แสดงให้เห็นแล้ว

    ดู -> แถบที่อยู่

     

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

    เส้นทางรีจิสทรี: HKEY_CLASSES_ROOT\Directory\Background\shell

    คลิกขวาที่เชลล์ -> ใหม่ -> คีย์

    ตั้งชื่อคีย์ 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

    คลิกขวาที่เชลล์ -> ใหม่ -> คีย์

    ตั้งชื่อคีย์ 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.