首先注册表导入:

    1. Windows Registry Editor Version 5.00
    2. [HKEY_CLASSES_ROOT\Directory\Background\shell\windows_terminal]
    3. @="Windows Terminal"
    4. "Icon"="D:\\Users\\quanzaiyu\\.wt\\icons\\WindowsTerminal.ico"
    5. [HKEY_CLASSES_ROOT\Directory\Background\shell\windows_terminal\command]
    6. @="C:\\Users\\quanzaiyu\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"

    将以下图标保存到 D:\Users\quanzaiyu\.wt\icons 下:
    WindowsTerminal.png

    修改Windows Terminal配置文件profiles.json中所有Shell的配置:

    1. "startingDirectory" : "%USERPROFILE%",

    修改为:

    1. "startingDirectory": "./",

    即可在当前目录下右键打开 Windows Terminal
    image.png

    参考:https://blog.csdn.net/Jioho_chen/article/details/101159291