Q:突然感觉的 PowerShell 终端默认颜色有点单调,就想着给它换个背景图,查找资料后,可以通过以下方式修改背景
method:
- 1.打开 PowerShell 点击设置进入到 setting.json文件中
- 2.可设置毛玻璃效果以及透明度
"defaults":
{
// Put settings here that you want to apply to all profiles.
// 设置毛玻璃以及透明度
"useAcrylic": true,
"acrylicOpacity": 0.5
},
- 3.通过"backgroundImage"和"backgroundImageOpacity"设置对应图片以及透明度即可
"list":
[
{
// Make changes here to the powershell.exe profile.
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"hidden": false,
"backgroundImage": "D:xxx.jpeg",
"backgroundImageOpacity": 0.5
},
{
// Make changes here to the cmd.exe profile.
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"name": "命令提示符",
"commandline": "cmd.exe",
"hidden": false,
"backgroundImage": "D:xxx.jpeg",
"backgroundImageOpacity": 0.5
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
"hidden": false,
"name": "Azure Cloud Shell",
"source": "Windows.Terminal.Azure",
"backgroundImage": "D:xxx.jpeg",
"backgroundImageOpacity": 0.5
}
]
- 效果真不戳