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, tout en gardant le même chemin.
This tutorial assumes that Windows PowerShell is run as default when Windows Terminal is started
- Edit the registry as follows…
Démarrez Éditeur du Registre
Win Key + R -> regedit -> Cliquez sur OK
Afficher la barre d'adresse dans l'Éditeur du Registre si elle est pas déjà affichée
Affichage -> Barre d'adresse
-
Add the first registry entry to create the icon in the menu…
Le chemin du registre:
HKEY_CLASSES_ROOT\Directory\Background\shellClic droit sur shell -> Nouveau -> Clé
Nommez la clé
TerminalModifier le (Défaut) chaîne à
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} avec votre propre chemin:
{path to icon}terminal.ico -
Ajouter la deuxième entrée de Registre
Le chemin du registre:
HKEY_CLASSES_ROOT\Directory\Background\shell\TerminalRight click Terminal -> New -> Key
Name the new key
commandEn commande, set the value of (Défaut):
wt -d . -
Ajouter la troisième entrée de Registre
Le chemin du registre:
HKEY_CLASSES_ROOT\Directory\shellClic droit sur shell -> Nouveau -> Clé
Nommez la clé
TerminalModifier le (Défaut) chaîne à
Windows Terminal HereRight click the new key Terminal -> New -> String
Name the new string
IconOuvrez Icône et définissez la valeur comme suit remplaçant {path to icon} avec votre propre chemin:
{path to icon}terminal.ico -
Ajouter la quatrième entrée de Registre
Le chemin du registre:
HKEY_CLASSES_ROOT\Directory\shell\TerminalRight click Terminal -> New -> Key
In the new command key, définir la valeur de défaut:
wt -d .
Le menu contextuel devrait maintenant fonctionner. Right click on the desktop and click Windows Terminal Here. Windows Terminal should open with PowerShell with the present working directory as your desktop.
