Windows Ternimal美化

配置

安装美化的程序和git支持

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

导入配置并将其永久化

Import-Module posh-git
Import-Module oh-my-posh
Set-PoshPrompt -Theme Paradox
  • 在选择美化类型前可以预览,Get-PoshThemes
  • 然后根据喜好自行选择 Set-PoshPrompt -Theme Paradox

保存效果

打开powershell配置文件.ps1code $profile,复制上面的内容

修改配置

  • 打开Windows Terminal配置文件,可以在窗口设置里打开settings.json

  • 只需要在list里面添加东西即可,在其他地方修改都会报错!

"profiles":
    {
        "defaults":
        {        	
            // Put settings here that you want to apply to all profiles.           
        },
        "list":
        [
            {
                // Make changes here to the powershell.exe profile.
                "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "name": "Windows PowerShell",
                "commandline": "powershell.exe",
				//这下面都是添加的配置,备注要删掉
                "colorScheme": "Campbell",	
                "useAcrylic": true,
                "closeOnExit":true,
                "acrylicOpacity" : 0.75,
                "fontFace": "Delugia Nerd Font",
                "fontSize":12,
                 "hidden":false,                
            },

字体

  • 下载字体,我直接去找网站下下载的,wget下载报出了个一堆信息,没下载成功,ttf文件放到C:/Windows/font里面就行
    在这里插入图片描述
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值