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…
Запустите редактор реестра
Win Key + R -> regedit -> нажмите «ОК».
Показать адресную строку в редакторе реестра, если он уже не показывает
Вид -> Адресная строка
-
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
IconOpen 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.
