博客链接:https://blog.xhyeax.com/2020/04/17/powershell-add-font/
主题安装
安装模块
win+x, PowerShell(管理员)
Install-Module posh-git -Force -SkipPublisherCheck
Install-Module oh-my-posh -Force -SkipPublisherCheck
编辑配置文件
if (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force }
notepad $PROFILE
写入以下内容
chcp 65001
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox
全部主题见:JanDeDobbeleer/oh-my-posh/Themes
字体安装及切换
下载字体
字体可以在这下载:powerline/fonts
安装字体
安装for Powerline