oh-my-posh

先安装Windows terminal

用Microsoft.WindowsTerminal_1.17.11461.0_8wekyb3d8bbwe.msixbundle安装

 

安装oh-my-posh

Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1'))

 

 

https://ohmyposh.dev/docs/installation/prompt

如果之前没有创建过profile文件的话,用命令先创建出来

New-Item -Path $PROFILE -Type File -Force

然后打开,用windows terminal打开notepad $profile

& ([ScriptBlock]::Create((oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\jandedobbeleer.omp.json" --print) -join "`n"))

 

C:\Users\clu\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json

 

字体安装

https://github.com/JanDeDobbeleer/oh-my-posh/pull/3907#issuecomment-1619882730

 

posted @ 2023-07-04 15:25  ChuckLu  阅读(20)  评论(0)    收藏  举报