终端美化
https://ohmyposh.dev/docs/installation/customize https://learn.microsoft.com/en-us/windows/terminal/tutorials/custom-prompt-setup#install-oh-my-posh-for-powershell
Powershell
- 下载oh-my-posh
Get-PoshThemes
找一个合适的主题,下载该主题的json
文件- 打开
PowerSehll
的配置文件Document/PowerShell/Microsoft.PowerShell_profile.ps1
,如果没有该文件,手动创建即可 - 将指令
oh-my-posh init pwsh --config ~/.jandedobbeleer.omp.json | Invoke-Expression
的.jandedobbeleer.omp.json
改成主题的json
路径文件 - 重启终端
WindowPowershell
与上面操作一致,只需要更改目录为Document/WindowsPowerShell