How to add Windows Terminal to the Windows Explorer context menu as👩‍💻 Windows Terminal Here

The Windows context menu option ‘👩‍💻 Windows Terminal Hereis 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

  1. 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

     

  2. Add the first registry entry to create the icon in the menu

    Le chemin du registre: HKEY_CLASSES_ROOT\Directory\Background\shell

    Clic droit sur shell -> Nouveau -> Clé

    Nommez la clé Terminal

    Modifier le (Défaut) chaîne à Windows Terminal Here

    Right click the new key Terminal -> New -> String

    Name the new string Icon

    Download the Windows Terminal Icon

    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

     

  3. Ajouter la deuxième entrée de Registre

    Le chemin du registre: HKEY_CLASSES_ROOT\Directory\Background\shell\Terminal

    Right click Terminal -> New -> Key

    Name the new key command

    En commande, set the value of (Défaut):

    wt -d .

     

  4. Ajouter la troisième entrée de Registre

    Le chemin du registre: HKEY_CLASSES_ROOT\Directory\shell

    Clic droit sur shell -> Nouveau -> Clé

    Nommez la clé Terminal

    Modifier le (Défaut) chaîne à Windows Terminal Here

    Right click the new key Terminal -> New -> String

    Name the new string Icon

    Ouvrez Icône et définissez la valeur comme suit remplaçant {path to icon} avec votre propre chemin:

    {path to icon}terminal.ico

     

  5. Ajouter la quatrième entrée de Registre

    Le chemin du registre: HKEY_CLASSES_ROOT\Directory\shell\Terminal

    Right 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.