Windows 终端美化 PowerShell 默认终端修改
网上各种各样的美化方法操作起来十分麻烦
可以写好脚本完成配置
可以直接在microsoft store 中搜索PowerShell,完成基本的安装。
以下开始美化PowerShell。
所有的命令都是在管理员模式下执行
安装 oh-my-posh
首先确保安装git
Install-Module posh-git -Scope CurrentUser git
然后安装「oh-my-posh」
Install-Module oh-my-posh -Scope CurrentUser
弹出安装选项时,输入y或者a。
安装Powerline字体
安装方法要用到git。Win+X然后再按A,启动powershell管理员模式。执行代码&