win10 terminal 美化

首先需要安装字体

https://github.com/microsoft/cascadia-code/releases
在这里插入图片描述

将这六个文件安装

接下来更改terminal配置文件

"profiles": 
    {
        "defaults": {},
        "list": 
        [
            {
                "colorScheme": "One Half Dark",
                "commandline": "powershell.exe -NoLogo -NoExit",
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "hidden": false,
                "name": "Windows PowerShell",
                "acrylicOpacity": 1,
                "useAcrylic": true,
                //这里是字体
                "fontFace": "Cascadia Code PL",
                //这里是背景图片
                "backgroundImage": "C:\\Users\\86138\\Music\\hexo\\themes\\ayer\\source\\images\\5.jpg",
                "backgroundImageOpacity": 0.2,
                "backgroundImageStretchMode": "fill"
            },
            {
                "commandline": "cmd.exe",
                "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
                "hidden": false,
                "name": "Command Prompt"
            },
            {
                "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
                "hidden": false,
                "name": "Azure Cloud Shell",
                "source": "Windows.Terminal.Azure"
            }
        ]
    },

之后安装一些东西

Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser

把下面内容输入终端

if (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force }
notepad $profile
//将下面内容写入
Import-Module Get-ChildItemColor
Set-Alias l Get-ChildItem -option AllScope
Set-Alias ls Get-ChildItemColorFormatWide -option AllScope
Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme Aliens

美化结果
在这里插入图片描述

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值