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…
بدء تشغيل محرر التسجيل
فوز مفتاح + R -> regedit -> Click OK
عرض شريط العناوين في محرر التسجيل إذا لم تكن تظهر بالفعل
View -> Address Bar
-
Add the first registry entry to create the icon in the menu…
مسار التسجيل:
HKEY_CLASSES_ROOT\Directory\Background\shellRight click shell -> New -> Key
اسم المفتاح
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\shellRight click shell -> New -> Key
اسم المفتاح
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.
