Windwos Terminal Github下载地址:https://github.com/microsoft/terminal

下载完成后,首先将如下的文件保存,并更改为reg后缀,然后添加到注册表:

Windows Registry Editor Version 5.00
 
[HKEY_CLASSES_ROOT\Directory\Background\shell\wt]
@="Windows Terminal Here (&T)"
"Icon"="C:\\Users\\your_username\\Pictures\\terminal.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command]
@="C:\\Users\\your_username\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe"

其中Icon项指向的是图标文件的位置。第二个路径为你的wt.exe程序路径。(&T)为快捷键,右键出现菜单后按t即可快速打开。
然后在Windows Terminal配置文件中添加下面内容:

"defaults":
    {
        "startingDirectory" : "."
    },

即可实现在当前目录打开Windows Terminal。