Windows Terminal添加至鼠标右键

本文最后更新于:2023年6月19日 下午

Windows Terminal添加至鼠标右键

安装

Microsoft Store中即可下载。

image-20230619110413661

配置

在鼠标右键打开

下载Terminal图标

图标地址:https://raw.githubusercontent.com/microsoft/terminal/master/res/terminal.ico

下载后保存在某个文件夹path

添加到鼠标右键

批处理修改注册表
1
2
3
4
5
@echo off
reg.exe add "HKEY_CLASSES_ROOT\Directory\Background\shell\wt" /f /ve /d "Windows Terminal here"
reg.exe add "HKEY_CLASSES_ROOT\Directory\Background\shell\wt" /f /v "Icon" /t REG_EXPAND_SZ /d "path\terminal.ico"
reg.exe add "HKEY_CLASSES_ROOT\Directory\Background\shell\wt\command" /f /ve /t REG_EXPAND_SZ /d "\"%%LOCALAPPDATA%%\Microsoft\WindowsApps\wt.exe\""
pause
手动修改注册表

按下Win+R快捷键打开运行,然后输入regedit打开注册表编辑器,然后在地址栏中输入:

1
计算机\HKEY_CLASSES_ROOT\directory\background\shell

image-20230619111056009

新建:wt

点击wt,双击右边的默认,在里面输入鼠标右键选项的名称:Windows Terminal here

右键wt,选择新建字符串,名为为Icon,在里面输入下载好的图标的地址:path\terminal.ico

右键wt,选择新建项,输入command

然后点击command,双击右边的默认,输入Terminal的地址"%%LOCALAPPDATA%%\Microsoft\WindowsApps\wt.exe\"即可。

image-20230619111734537

在当前目录打开

打开配置文件

点击Windows Terminal菜单栏上的下拉箭头,然后选择Settings:

image-20230619110508615

image-20230619112038125

在当前目录打开

在默认打开的终端配置中添加"startingDirectory" : ".",这个配置即可:

image-20230619112140525


Windows Terminal添加至鼠标右键
http://example.com/2023/06/19/Windows Terminal添加至鼠标右键/
作者
Eddy
发布于
2023年6月19日
许可协议