先上效果图
- 安装Git,网上教程很多,此处不再赘述
- 在powershell中执行以下两行命令
Import-Module posh-git Import-Module oh-my-posh
- 编辑C:\Users\username\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1文件(注意:username为你电脑对应的用户名)
Import-Module posh-git Import-Module oh-my-posh Set-PoshPrompt -Theme paradox
- 此时,终端显示可能并非如你所愿,接下来需要安装字体,下载地址:点击此处