跳转到主内容

Windows

非官方测试版翻译

本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →

终端环境配置

虽然 Oh My Posh 能在标准终端运行,但我们建议使用 Windows Terminal

信息

要完整显示所有图标,推荐安装 Nerd Font 字体。

注意

在 WSL 环境中使用 oh-my-posh 时,请确保遵循 Linux 安装指南。

msstoremsstore

安装步骤

Open a PowerShell prompt and run the following command:

winget install JanDeDobbeleer.OhMyPosh --source winget
非官方测试版翻译

本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →

下一步

Oh My Posh 已安装完毕,接下来你可以配置终端和 shell,让命令行提示符完全按照你的心意显示。

-(可选)配置主题或自定义提示符配置

更新方法

Open a PowerShell prompt and run the following command:

winget upgrade JanDeDobbeleer.OhMyPosh --source winget