兩種則一,關於 choco / scoop / winget 可以看這篇
不過本篇是使用 scoop 去安裝的,所以以下教學都是 scoop 可用。
scoop install <https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/oh-my-posh.json>
winget install JanDeDobbeleer.OhMyPosh -s winget
$profile
顯示檔案位置。code $profile
輸入以下內容
oh-my-posh init pwsh | Invoke-Expression
儲存後重新打開 Terminal 就可以看到效果了
Get-PoshThemes
如果遇到以下問題代表第二點沒有設置正確