windows terminal配置powershell 7和美化

一、微软商店安装windows terminal

二、下载powershell 7并安装

Release v7.2.5 Release of PowerShell · PowerShell/PowerShell · GitHub

PowerShell-7.2.5-win-x64.msi

三、在windows terminal中添加powershell 7 

在windows terminal设置中打开json文件

添加下方代码

{
    "guid": "{be8c6241-aafb-437f-8d7c-a7142adf7f54}",
    "name": "PowerShell Core",
    "commandline": "D:\\Program Files\\PowerShell\\7\\pwsh.exe",
    "icon": "D:\\Program Files\\PowerShell\\7\\assets\\ps_black_32x32.ico",
    "hidden": false
},

设置powershell core为默认

四、安装oh-my-posh

winget install oh-my-posh

如果无法正常使用oh-my-posh命令,则需要添加oh-my-posh的bin目录到系统环境变量path

四、修改配置文件和美化

Windows Terminal 完美配置 PowerShell 7.1 - 知乎

https://blog.csdn.net/skoyine/article/details/124961348

【powershell】oh-my-posh安装和配置避坑指南 - 王大桃zzZ - 博客园

五、更换背景图片

Windows Terminal Preview设置背景图片 - 知乎

windows terminal换背景图片 - 希望什么时候会有呢 - 博客园

Windows Terminal 完美配置 PowerShell 7 - 腾讯云开发者社区-腾讯云

六、取消powershell 7欢迎语

【解决】隐藏 PowerShell 欢迎页/开头标语/欢迎信息_miozus的博客-CSDN博客

七、效果如下:

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值