windows terminal配置powershell 7和美化

一、微软商店安装windows terminal 二、下载powershell 7并安装 Release v7.2.5 Release of PowerShell · PowerShellPowerShell · GitHub 如P

一、微软商店安装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/skoyine/article/details/124961348

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

五、更换背景图片

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

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

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

六、取消powershell 7欢迎语

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

七、效果如下:

发布者:admin,转转请注明出处:http://www.yc00.com/web/1739235128a4117179.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信