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, pri tem pa ohranjajo isto pot.
 

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

  1. Edit the registry as follows…

    Zaženite urejevalnik registra

    Win Key + R -> regedit -> Kliknite V redu

    Prikažite naslovno vrstico v urejevalniku registra, če še ni prikazana

    Pogled -> Naslovna vrstica

     

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

    Registrska pot: HKEY_CLASSES_ROOT\Directory\Background\shell

    Desni klik lupine -> Novo -> Ključ

    Poimenujte ključ Terminal

    Uredite (privzeto) niz na 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} s svojo potjo:

    {path to icon}terminal.ico

     

  3. Dodajte drugi vnos v register

    Registrska pot: HKEY_CLASSES_ROOT\Directory\Background\shell\Terminal

    Right click Terminal -> New -> Key

    Name the new key command

    V ukazu, set the value of (privzeto):

    wt -d .

     

  4. Dodajte tretji vnos v register

    Registrska pot: HKEY_CLASSES_ROOT\Directory\shell

    Desni klik lupine -> Novo -> Ključ

    Poimenujte ključ Terminal

    Uredite (privzeto) niz na Windows Terminal Here

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

    Name the new string Icon

    Odprite ikono in nastavite vrednost, kot sledi zamenjava {path to icon} s svojo potjo:

    {path to icon}terminal.ico

     

  5. Dodajte četrti vnos v register

    Registrska pot: HKEY_CLASSES_ROOT\Directory\shell\Terminal

    Right click Terminal -> New -> Key

    In the new command key, nastavite vrednost Privzeto:

    wt -d .

     

Kontekstni meni bi zdaj moral delovati. Right click on the desktop and click Windows Terminal Here. Windows Terminal should open with PowerShell with the present working directory as your desktop.