我没有成功, 你们试试
Microsoft/Windows Terminal/releases/
下载安装包到本地, 安装成功后如果更新错误, 重起电脑, 可以安装成功
打开Settings
可以使用任意文本编辑器, 只要可以修改代码, 推荐vscode
各位根据需求改一改
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
//更改guid, 修改默认终端
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"profiles":
{
"defaults":
{
// Put settings here that you want to apply to all profiles
//设置背景图片的透明度
"backgroundImageOpacity": 1,
//亚克力毛玻璃效果
"useAcrylic": false,
//亚克力背景透明度(需启用useAcrylic)
"acrylicOpacity": 0.5,
//字体设置
"fontFace": "Consolas",
//字体大小
"fontSize": 11,
//背景颜色
"background": "#282A35",
//背景图片(URL或绝对路径)
//"backgroundImage": "C:/Users/whiterose/Pictures/Cmd_background/1.jpg",
//"backgroundImageAlignment" : "center",
//"backgroundImageOpacity" : 0.25,
//"backgroundImageStretchMode" : "uniformToFill",
//内容的边框距, 默认填充全部空间
"padding": "0, 0, 0, 0",
//输入时自动k滚动到输入位置
"snapOnInput": true,
//终端启动时文件夹路径
"startingDirectory": "C:\\",
//关闭窗口时推出所用挂载的程序
"closeOnExit": true,
//颜色主题
"colorScheme": "Dracula",
//图标, 需要自行更该
//"icon": "C:\\Users\\whiterose\\Pictures\\Cmd_background\\3.ico"
},
"list":
[
{
// Make changes here to the powershell.exe profile
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"hidden": false
},
{
// Make changes here to the cmd.exe profile
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"name": "cmd",
"commandline": "cmd.exe",
"hidden": false
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
"hidden": false,
"name": "Azure Cloud Shell",
"source": "Windows.Terminal.Azure"
}
// 可以类似设置wsl
]
},
// Add custom color schemes to this array
// 可以设置多个
"schemes": [
{
"name" : "Dracula",
"background" : "#282A36",
"black" : "#21222C",
"blue" : "#BD93F9",
"brightBlack" : "#6272A4",
"brightBlue" : "#D6ACFF",
"brightCyan" : "#A4FFFF",
"brightGreen" : "#69FF94",
"brightPurple" : "#FF92DF",
"brightRed" : "#FF6E6E",
"brightWhite" : "#FFFFFF",
"brightYellow" : "#FFFFA5",
"cyan" : "#8BE9FD",
"foreground" : "#F8F8F2",
"green" : "#50FA7B",
"purple" : "#FF79C6",
"red" : "#FF5555",
"white" : "#F8F8F2",
"yellow" : "#F1FA8C"
}
],
// Add any keybinding overrides to this array.
// To unbind a default keybinding, set the command to "unbound"
"keybindings": []
}