LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

oh-my-posh

prompt theme engine

TLDR

Initialize for shell
$ eval "$(oh-my-posh init [bash|zsh|fish])"
copy
Use specific theme
$ eval "$(oh-my-posh init bash --config [theme.json])"
copy
List available themes
$ oh-my-posh get themes
copy
Print current config
$ oh-my-posh print primary
copy
Debug prompt
$ oh-my-posh debug
copy

SYNOPSIS

oh-my-posh [command] [options]

DESCRIPTION

oh-my-posh is a cross-platform prompt theme engine that renders customizable shell prompts using configurable segments for git status, language versions, execution time, and more. It works with bash, zsh, fish, PowerShell, cmd, and nu.

PARAMETERS

init SHELL

Generate shell initialization script (bash, zsh, fish, powershell, cmd, nu).
get themes
List available themes.
get shell
Display current shell information.
config export
Export current theme configuration.
config migrate
Migrate configuration to current version format.
font install
Install a Nerd Font.
cache clear
Clear the prompt cache.
upgrade
Update oh-my-posh to the latest version.
toggle segment
Enable or disable a specific prompt segment.
debug
Show prompt rendering diagnostics.
--config FILE
Path to configuration file (JSON, YAML, or TOML).

CAVEATS

Requires Nerd Font for icons. Cross-platform. Config in JSON/YAML/TOML.

HISTORY

oh-my-posh was created for customizable shell prompts across different shells.

SEE ALSO

starship(1), powerline(1), p10k(1)

Copied to clipboard
Kai