Yao Lirong's Blog

Add "Open with Windows Terminal" to Right-Click Menu

2020/09/29

Windows Terminal Preview now provides native support of this feature.

  1. Download the icon here

  2. Move the icon to directory C:\Users\<your username>\AppData\Local\WindowsTerminal

  3. Create a .reg file and run it.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
    @="Open with Windows Terminal"
    "Icon"="C:\\Users\\<your username>\\AppData\\Local\\WindowsTerminal\\terminal.ico"

    [HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
    @="C:\\Users\\harmo\\<your username>\\Local\\Microsoft\\WindowsApps\\wt.exe"

  4. In Windows Terminal’s settings, Add "startingDirectory" : "." into defaults list:

    1
    2
    3
    4
    "defaults":
    {
    "startingDirectory" : "."
    },

Reference

  1. How to Add Open Windows Terminal Here Option to Right-click Menu

  2. Add “open Windows terminal here” to right-click context menu

  3. 将”在此处启动Windows Terminal”添加到右键菜单

CATALOG
  1. 1. Reference