Window PowerShell设置背景图片

简介: Window PowerShell设置背景图片

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
            }
        ]


  • 效果真不戳


相关文章
|
10月前
powershell 设置代理
powershell 设置代理
217 0
PowerShell设置Http、Https代理
PowerShell设置Http、Https代理
837 0
window powershell 删除文本的前几行
删除第一行 Get-Content a.txt | Select-Object -Skip 1 | Set-Content b.txt 复制代码 删除前2行 Get-Content a.
2054 0
window powershell 获取所有用户的最后登录时间
ComputerName) | Where-Object {adsi = [ADSI]"WinNT://adsi.Children | where {today=Get-Date -Format 'yyyyMMdd'ipaddr+""+ -replac...
1060 0
window powershell 获取前后日期,格式化日期
today" 昨天 "昨天是:today.AddDays(-1))" 明天 "明天是:today.AddDays(1))" 一周前 "一周前是: today.
1650 0
|
Windows
window powershell设置脚本的执行权限
Windows PowerShell 现用执行策略很可能是Restricted(默认设置)。 Restricted 执行策略不允许任何脚本运行。若要了解计算机上的现用执行策略,请键入:get-executionpolicy 。
1737 0
window powershell 获取本机IP
[System.Net.Dns]::GetHostAddresses(_.AddressFamily -eq 'InterNetwork' } | Select-Object -ExpandProperty IPAddressToString ...
1478 0
window powershell 替换文本的字符
(Get-Content file.txt) | Foreach-Object {$_ -replace '[MYID]','MyValue'} | Out-File file.txt
1546 0
window powershell 筛选
筛选: 从众多的输出结果中挑选出符合条件的项。通常情况下,输出结果以列表的形式显示 例如:用get-command命令查看前十行的命令 wKiom1gVvW3Dx84XAACyV8_fMEw871.jpg 默认情况下,get-command搜索到的命令是以列表的形式展示的,如上图所示,输出结果有三列,这三个字段分别是:CommandType、Name、Definition。
910 0
|
Web App开发 JavaScript 数据库
Docker 必备的 PowerShell 别名设置教程,轻松应对日常办公
作为一名使用 Docker 办公的程序员来说,我每天需要使用到大量的 docker 命令。通过在 PowerShell 中将这些命令处理成别名的形式,我节省了大量打字的时间以及处理拼写错误和修复拼写错误的时间。
2050 0