站内导读
中文 Oh My Posh 是一个跨平台、可扩展的 prompt 主题引擎,最初从 PowerShell 的 oh-my-posh2 演化而来。它解决不同 shell 与操作系统下提示符风格不统一、配置繁琐的问题,支持 secondary prompt、right prompt 和 transient prompt,配置灵活且运行速度快。适合需要统一终端外观、愿意花时间调校提示符的开发者与运维人员。
日本語 Oh My Posh は PowerShell 向け oh-my-posh2 から発展した、クロスプラットフォームで拡張可能な prompt テーマエンジンです。shell や OS が変わってもプロンプトの見た目を揃えられ、設定の重複を避けられます。secondary prompt、right prompt、transient prompt に対応し、動作も高速です。ターミナルの見た目を統一したい開発者や運用担当者に向いています。
한국어 Oh My Posh는 PowerShell용 oh-my-posh2에서 출발한 크로스 플랫폼 prompt 테마 엔진입니다. shell과 OS가 달라도 프롬프트 모양을 통일할 수 있고 설정 중복을 줄일 수 있습니다. secondary prompt, right prompt, transient prompt를 지원하며 동작이 빠릅니다. 터미널 환경을 일관되게 유지하려는 개발자와 운영 담당자에게 적합합니다.
English Oh My Posh is a cross-platform, extensible prompt theme engine that grew out of oh-my-posh2 for PowerShell. It keeps prompt styling consistent across shells and operating systems and avoids duplicated configuration. It supports secondary prompts, right prompts and transient prompts, and runs fast. It suits developers and operators who want a uniform terminal prompt.
README · 详细文档
来源 · 查看原文
<!-- markdownlint-disable --> <p align="center"> <img width="400" src="https://raw.githubusercontent.com/jandedobbeleer/oh-my-posh/main/website/static/img/logo.png" alt="Oh My Posh logo – Prompt theme engine for any shell" /> </p> <!-- markdownlint-enable -->
[![Release version number badge][release-badge]][release]
[![Documentation link badge ohmyposh.dev][docs-badge]][docs]
This repo was made with love using GitKraken.
[![GitKraken shield][kraken]][kraken-ref] <!-- markdownlint-disable first-header-h1 -->
Sponsors
<!-- markdownlint-disable no-inline-html line-length --> <a href="https://coderabbit.link/posh"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://www.coderabbit.ai/press-kit/coderabbit-reverse-white.svg"> <source media="(prefers-color-scheme: light)" srcset="https://www.coderabbit.ai/press-kit/coderabbit-primary-black.svg"> <img alt="CodeRabbit" height="44" src="https://www.coderabbit.ai/press-kit/coderabbit-primary-black.svg" /> </picture> </a> <!-- markdownlint-enable no-inline-html line-length -->
[Want to become a sponsor?][sponsor-link]
Join the community
What started as the offspring of oh-my-posh2 for PowerShell resulted in a cross platform, highly customizable and extensible prompt theme engine. After 4 years of working on oh-my-posh, a modern and more efficient tool was needed to suit my personal needs.
:heart: Support :heart:
<!-- markdownlint-disable no-inline-html line-length --> <a href="https://commitgoods.com/collections/oh-my-posh?utmsource=github&utmmedium=referral"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://cdn.shopify.com/s/files/1/0101/8752/files/commitgoods-badge-stacked-navy-dark.svg"> <img src="https://cdn.shopify.com/s/files/1/0101/8752/files/commitgoods-badge-stacked-navy.svg" height="28" alt="Official merch on commitgoods.com"> </picture> </a> - Show your love with a t-shirt! <!-- markdownlint-enable no-inline-html line-length -->
[![GitHub][github-badge]][github-sponsors] - One time support, or a recurring donation?
[![Ko-Fi][kofi-badge]][kofi] - No coffee, no code.
Features
- Shell and platform agnostic
- Easily configurable
- The most configurable prompt utility
- Fast
- Secondary prompt
- Right prompt
- Transient prompt
Documentation
[![Documentation][docs-badge]][docs]
Reviews
Thanks
- Chris Benti providing the first influence to start oh-my-posh
- Keith Dahlby for creating posh-git and making life more enjoyable
- Robby Russell for creating oh-my-zsh, without him this would probably not be here
- Janne Mareike Koschinski for providing information on how to get certain information
using Go (and the amazing README)
- Starship for doing great things
[kraken]: https://img.shields.io/badge/GitKraken-Legendary%20Git%20Tools-teal?style=plastic&logo=gitkraken [kraken-ref]: https://www.gitkraken.com/invite/nQmDPR9D [github-badge]: https://img.shields.io/badge/-Sponsor-fafbfc?logo=GitHub%20Sponsors [github-sponsors]: https://github.com/sponsors/JanDeDobbeleer [kofi-badge]: https://img.shields.io/badge/Ko--fi-Buy%20me%20a%20coffee!-%2346b798.svg [kofi]: https://ko-fi.com/jandedobbeleer [docs-badge]: https://img.shields.io/badge/Docs-ohmyposh.dev-blue [docs]: https://ohmyposh.dev [release-badge]: https://img.shields.io/github/v/release/jandedobbeleer/oh-my-posh?label=Release [release]: https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest
[sponsor-link]: https://buy.polar.sh/polarclqnmZxboq1IDUJo03mk2Jue6ktqZrCXElnzH2s2xbV2R