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
- Edit the registry as follows…
เริ่มโปรแกรม Registry Editor
ชนะที่สำคัญ + R -> regedit -> คลิกตกลง
แสดงแถบที่อยู่ในโปรแกรม Registry Editor หากยังไม่ได้แสดงให้เห็นแล้ว
ดู -> แถบที่อยู่
-
Add the first registry entry to create the icon in the menu…
เส้นทางรีจิสทรี:
HKEY_CLASSES_ROOT\Directory\Background\shellคลิกขวาที่เชลล์ -> ใหม่ -> คีย์
ตั้งชื่อคีย์
Terminalแก้ไข (ค่าเริ่มต้น) สตริงที่
Windows Terminal HereRight click the new key Terminal -> New -> String
Name the new string
IconDownload the Windows Terminal Icon…
Open the Icon string and set the value as follows replacing {path to icon} กับเส้นทางของคุณเอง:
{path to icon}terminal.ico -
เพิ่มรายการรีจิสทรีที่สอง
เส้นทางรีจิสทรี:
HKEY_CLASSES_ROOT\Directory\Background\shell\TerminalRight click Terminal -> New -> Key
Name the new key
commandในคำสั่ง, set the value of (ค่าเริ่มต้น):
wt -d . -
เพิ่มรายการรีจิสทรีที่สาม
เส้นทางรีจิสทรี:
HKEY_CLASSES_ROOT\Directory\shellคลิกขวาที่เชลล์ -> ใหม่ -> คีย์
ตั้งชื่อคีย์
Terminalแก้ไข (ค่าเริ่มต้น) สตริงที่
Windows Terminal HereRight click the new key Terminal -> New -> String
Name the new string
Iconไอคอนเปิดและตั้งค่าดังต่อไปนี้แทน {path to icon} กับเส้นทางของคุณเอง:
{path to icon}terminal.ico -
เพิ่มรายการรีจิสทรีที่สี่
เส้นทางรีจิสทรี:
HKEY_CLASSES_ROOT\Directory\shell\TerminalRight 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.
