What is Oh My Posh?
Oh My Posh is a prompt theme engine for any shell, created by Jan De Dobbeleer and written in Go. One engine, one theme format โ the same beautiful, information-rich prompt in bash, zsh, fish, PowerShell, Nushell, elvish, xonsh and cmd. With tens of thousands of GitHub stars and a huge theme ecosystem, it has become the go-to way to get a consistent prompt across every machine and shell you use.
PS1 escape codes? Married to a prompt framework that only works in one shell? Rebuilding your prompt from scratch every time you switch between zsh at home and bash on servers? Oh My Posh gives you one configuration that follows you everywhere.
apt upgrade keeps you on the latest version.
โก Key Features of Oh My Posh
๐ Any Shell, One Config
Identical prompt in bash, zsh, fish, PowerShell, Nushell, elvish, xonsh and cmd. Configure once, use everywhere โ including over SSH.
๐จ 125+ Themes Included
This package ships every built-in theme to /usr/share/oh-my-posh/themes/ โ ready to preview and use offline, no extra downloads.
๐งฉ Rich Segments
Git status, exit codes, execution time, battery, kubernetes context, cloud accounts, and language versions (Go, Python, Node, Rust and dozens more) โ shown only when relevant.
๐ Your Theme, Your Format
Write custom themes in JSON, YAML or TOML with a documented schema. Start from any built-in theme and make it yours.
โจ Transient & Tooltips
Transient prompts keep scrollback clean, tooltips react to what you type, and right-aligned segments make use of the full terminal width.
โก Fast by Design
A single Go binary with concurrent segment rendering โ the prompt stays instant even with many segments enabled.
๐ Why install it with apt?
- No curl-pipe-bash: a GPG-signed repository instead of piping installer scripts into your shell
- Themes included: all built-in themes land in
/usr/share/oh-my-posh/themes/, version-matched to the binary - Automatic updates: new upstream releases arrive with your normal
apt upgrade - Clean removal:
apt removetakes everything with it โ no stray binaries in~/bin - Multi-arch: amd64, arm64 and armhf โ the same setup on your desktop and your Raspberry Pi
๐ฆ Installation from deb.griffo.io
Step 1: Add Repository
Step 2: Install Oh My Posh
๐ Set up your shell
Pick a theme from /usr/share/oh-my-posh/themes/ and initialize your shell. For bash, add this to ~/.bashrc:
For zsh, add the same line with zsh to ~/.zshrc; for fish, add oh-my-posh init fish --config /usr/share/oh-my-posh/themes/jandedobbeleer.omp.json | source to ~/.config/fish/config.fish. Most themes look best with a Nerd Font โ or run oh-my-posh font install.
๐ฆ Package Build Repository
The Debian packages are automatically built and maintained in this GitHub repository:
- ๐ oh-my-posh-debian - Latest release builds
๐ Related Packages
Also available from deb.griffo.io:
- Starship - Another popular cross-shell prompt, if you want to compare
- fzf Fuzzy Finder - Interactive filtering for your beautiful new terminal
- zoxide - Smart cd that pairs perfectly with a fast prompt
- Atuin - Magical shell history to complete the setup
๐ Support This Project
If this repository saves you time and effort, please consider supporting it!