Windows Terminal添加至鼠标右键

安装

Microsoft Store中即可下载。

请添加图片描述

配置

在鼠标右键打开

下载Terminal图标

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

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

添加到鼠标右键
批处理修改注册表
@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打开注册表编辑器,然后在地址栏中输入:

计算机\HKEY_CLASSES_ROOT\directory\background\shell

请添加图片描述

新建:wt

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

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

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

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

请添加图片描述

在当前目录打开
打开配置文件

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

请添加图片描述

请添加图片描述

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

请添加图片描述


🎃
🎁
🎇

GitHub 加速计划 / term / terminal
8
0
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:6 个月前 )
b8ff95d6 - Remove duplicated entries. - Fix whitespace. Co-authored-by: João Guerra <joca-bt@users.noreply.github.com> 15 天前
f28f6587 20 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐