Skip to content

Instantly share code, notes, and snippets.

@cossssmin
Created February 21, 2020 11:24
Show Gist options
  • Save cossssmin/7906b685ae024236f8d3f44ad60b59dd to your computer and use it in GitHub Desktop.
Save cossssmin/7906b685ae024236f8d3f44ad60b59dd to your computer and use it in GitHub Desktop.
Add Windows Terminal to context menu
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Directory\shell\wt]
@="Windows Terminal Here"
"Icon"="C:\\Users\\{YOUR_USER_NAME}\\AppData\\Local\\terminal\\terminal.ico"
[HKEY_CURRENT_USER\Directory\shell\wt\command]
@="C:\\Users\\{YOUR_USER_NAME}\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe new-tab -d \"%V\" -p \"Pengwin\""
[HKEY_CURRENT_USER\Directory\Background\shell\wt]
@="Windows Terminal Here"
"Icon"="C:\\Users\\{YOUR_USER_NAME}\\AppData\\Local\\terminal\\terminal.ico"
[HKEY_CURRENT_USER\Directory\Background\shell\wt\command]
@="C:\\Users\\{YOUR_USER_NAME}\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe new-tab -d \"%V\" -p \"Pengwin\""
@cossssmin
Copy link
Author

This adds a "Windows Terminal Here" command to the context menu.

Works both on a folder and inside a folder.

How to

  1. Download the Windows Terminal icon ↗ and place it somewhere.
    The code above assumes you'll add it to C:\Users\{YOUR_USER_NAME}\AppData\Local\terminal\terminal.ico

  2. Download wt.reg and open it.

  3. Windows will ask you to confirm:

    image

  4. Confirm by clicking "Yes" - you will get a confirmation that the values have been successfully added to the Windows Registry.

You should now see "Windows Terminal Here" in your Windows Explorer context menu.

Preview

Right-clicking inside a folder:

image

Right-clicking a folder:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment