1.安装
可在应用商店安装,也可以scoop安装。
scoop install windows-terminal
2. 配置文件
在设置里直接打开的是个人配置:setting.json
按下alt
再打开是默认配置文件:default.json
直接默认文件的内容全部拷贝到个人配置里。
简单的改一下powershell的设置,主题、字体、启动目录。
"profiles":
[
{
"guid": "{xxx-xxx}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"icon": "ms-appx:///ProfileIcons/{xxx}.png",
"colorScheme": "One Half Dark", # "Campbell"
"antialiasingMode": "grayscale",
"closeOnExit": "graceful",
"cursorShape": "bar",
"fontFace": "Jetbrains Mono, Yahei Consolas Hybrid", # "Cascadia Mono"
"fontSize": 11,
"hidden": false,
"historySize": 9001,
"padding": "8, 8, 8, 8",
"snapOnInput": true,
"startingDirectory": ".", # "%USERPROFILE%",
"useAcrylic": false
},
]
3. 加入右键菜单
- 新建注册表文件
windows terminal here.reg
, 内容如下(路径按需修改)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\Open with &terminal]
@="Open with &terminal"
"Icon"="\"C:\\Users\\xxxx\\scoop\\apps\\windows-terminal\\current\\windowsterminal.exe\""
[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\Open with &terminal\command]
@="\"C:\\Users\\xxxx\\scoop\\apps\\windows-terminal\\current\\windowsterminal.exe\""
网友评论