Skip to main content

终端美化

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

  1. 下载oh-my-posh
  2. Get-PoshThemes 找一个合适的主题,下载该主题的json文件
  3. 打开PowerSehll的配置文件Document/PowerShell/Microsoft.PowerShell_profile.ps1,如果没有该文件,手动创建即可
  4. 将指令 oh-my-posh init pwsh --config ~/.jandedobbeleer.omp.json | Invoke-Expression.jandedobbeleer.omp.json改成主题的json路径文件
  5. 重启终端

WindowPowershell

与上面操作一致,只需要更改目录为Document/WindowsPowerShell

ZSH

  1. https://zhuanlan.zhihu.com/p/438124776?utm_psn=1714051528283860992