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, sambil mengekalkan jalan yang sama.
 

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

  1. Edit the registry as follows…

    Mulakan Editor Pendaftaran

    Win Key + R -> regedit -> Klik OK

    Tunjukkan bar Alamat dalam Editor Pendaftaran jika ia belum dipaparkan

    Lihat -> Bar Alamat

     

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

    Laluan Pendaftaran: HKEY_CLASSES_ROOT\Directory\Background\shell

    Klik kanan shell -> New -> Key

    Namakan kunci Terminal

    Edit (lalai) rentetan kepada 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} dengan laluan anda sendiri:

    {path to icon}terminal.ico

     

  3. Tambah entri pendaftaran kedua

    Laluan Pendaftaran: HKEY_CLASSES_ROOT\Directory\Background\shell\Terminal

    Right click Terminal -> New -> Key

    Name the new key command

    Dalam perintah, set the value of (lalai):

    wt -d .

     

  4. Tambah entri pendaftaran ketiga

    Laluan Pendaftaran: HKEY_CLASSES_ROOT\Directory\shell

    Klik kanan shell -> New -> Key

    Namakan kunci Terminal

    Edit (lalai) rentetan kepada Windows Terminal Here

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

    Name the new string Icon

    Buka Ikon dan tetapkan nilai seperti berikut menggantikan {path to icon} dengan laluan anda sendiri:

    {path to icon}terminal.ico

     

  5. Tambah entri pendaftaran keempat

    Laluan Pendaftaran: HKEY_CLASSES_ROOT\Directory\shell\Terminal

    Right click Terminal -> New -> Key

    In the new command key, tetapkan nilai Lalai:

    wt -d .

     

Menu konteks sekarang sepatutnya berfungsi. Right click on the desktop and click Windows Terminal Here. Windows Terminal should open with PowerShell with the present working directory as your desktop.