1.安装ConEmu(windows终端增强版)
choco install ConEmu
2.安装PowerShell字体
git clone https://github.com/powerline/fonts.git --depth=1
cd .\fonts\
./install.ps1
3.安装美化模块
Set-ExecutionPolicy Bypass
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
4.设置主题配置文件
if (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force }
notepad $PROFILE
在打开的.ps1配置文件中加入以下内容:
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Agnoster
5.对ConEmu设置
略 参考
6.效果
随便设置了,感觉还不错
7.参考
Win10 1809 PowerShell美化教程
美化你的PowerShell
JanDeDobbeleer/oh-my-posh