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, sambil mengekalkan jalan yang sama.
This tutorial assumes that Windows PowerShell is run as default when Windows Terminal is started
- Edit the registry as follows…
Mulakan Editor Pendaftaran
Win Key + R -> regedit -> Klik OK
Tunjukkan bar Alamat dalam Editor Pendaftaran jika ia belum dipaparkan
Lihat -> Bar Alamat
-
Add the first registry entry to create the icon in the menu…
Laluan Pendaftaran:
HKEY_CLASSES_ROOT\Directory\Background\shellKlik kanan shell -> New -> Key
Namakan kunci
TerminalEdit (lalai) rentetan kepada
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} dengan laluan anda sendiri:
{path to icon}terminal.ico -
Tambah entri pendaftaran kedua
Laluan Pendaftaran:
HKEY_CLASSES_ROOT\Directory\Background\shell\TerminalRight click Terminal -> New -> Key
Name the new key
commandDalam perintah, set the value of (lalai):
wt -d . -
Tambah entri pendaftaran ketiga
Laluan Pendaftaran:
HKEY_CLASSES_ROOT\Directory\shellKlik kanan shell -> New -> Key
Namakan kunci
TerminalEdit (lalai) rentetan kepada
Windows Terminal HereRight click the new key Terminal -> New -> String
Name the new string
IconBuka Ikon dan tetapkan nilai seperti berikut menggantikan {path to icon} dengan laluan anda sendiri:
{path to icon}terminal.ico -
Tambah entri pendaftaran keempat
Laluan Pendaftaran:
HKEY_CLASSES_ROOT\Directory\shell\TerminalRight click Terminal -> New -> Key
In the new command key, tetapkan nilai Lalai:
wt -d .
Menu konteks sekarang sepatutnya berfungsi. Right click on the desktop and click Windows Terminal Here. Windows Terminal should open with PowerShell with the present working directory as your desktop.
