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, pitäen samalla polulla.
 

This tutorial assumes that Windows PowerShell is run as default when Windows Terminal is started

  1. Edit the registry as follows…

    Käynnistä Rekisterieditori

    Win Key + R -> regedit -> Click OK

    Näytä osoiterivin Registry Editor, jos se ei ole jo näkyvissä

    View -> Address Bar

     

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

    rekisteripolku: HKEY_CLASSES_ROOT\Directory\Background\shell

    Right click shell -> New -> Key

    Name the key Terminal

    Edit the (oletusarvo) string to 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} omalla polku:

    {path to icon}terminal.ico

     

  3. Lisää toinen rekisterimerkintä

    rekisteripolku: HKEY_CLASSES_ROOT\Directory\Background\shell\Terminal

    Right click Terminal -> New -> Key

    Name the new key command

    Komennossa, set the value of (oletusarvo):

    wt -d .

     

  4. Lisää kolmas rekisterimerkintä

    rekisteripolku: HKEY_CLASSES_ROOT\Directory\shell

    Right click shell -> New -> Key

    Name the key Terminal

    Edit the (oletusarvo) string to Windows Terminal Here

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

    Name the new string Icon

    Avoin Ikoni ja määritä arvo seuraavasti korvaa {path to icon} omalla polku:

    {path to icon}terminal.ico

     

  5. Lisää neljäs rekisterimerkintä

    rekisteripolku: HKEY_CLASSES_ROOT\Directory\shell\Terminal

    Right click Terminal -> New -> Key

    In the new command key, aseta arvo Oletus:

    wt -d .

     

Kontekstivalikko nyt pitäisi toimia. Right click on the desktop and click Windows Terminal Here. Windows Terminal should open with PowerShell with the present working directory as your desktop.