此方法在Windows 10 版本1909上通过Microsoft Store中安装的
Windows Terminal
测试通过,其它版本可能有些许区别。
添加主题
Windows Terminal
从profiles.json
中读取配置,初始状态下配置文件很“简陋”:
// 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",
"defaultProfile": "{XXX}",
"profiles": [
{
// Make changes here to the powershell.exe profile
"guid": "{XXX}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"hidden": false
},
{
// Make changes here to the cmd.exe profile
"guid": "{XXX}",
"name": "cmd",
"commandline": "cmd.exe",