Win10:Terminal美化
安装oh-my-posh
# powershell这种安装方式没有试成功
# C:\Users\riguz\Documents\WindowsPowerShell\Modules\oh-my-posh
# C:\Program Files\WindowsPowerShell\Modules
# Install-Module oh-my-posh -Scope CurrentUser
Winget安装:
在AppStore里面更新App Installer
winget install JanDeDobbeleer.OhMyPosh
# 修改$PROFILE
oh-my-posh --init --shell pwsh --config ~\AppData\Local\Programs\oh-my-posh\themes\jandedobbeleer.omp.json | Invoke-Expression
. $PROFILE
# 管理员运行
set-executionpolicy remotesigned
安装Nerd font
可选某个Mono字体的patch版本
然后调整Windows Terminal的字体设置:
"profiles":
{
"defaults":
{
// Put settings here that you want to apply to all profiles.
"fontFace": "Hack NF",
"fontSize": 9
},