oh-my-posh

发布时间 2023-07-04 15:31:13作者: ChuckLu

先安装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"))