LinuxCommandLibrary

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 prompt theme engine. Customizes shell prompts with themes.
The tool provides rich prompt customization. Cross-shell compatible.

PARAMETERS

init SHELL

Initialize for shell.
print SEGMENT
Print prompt segment.
get themes
List themes.
debug
Debug prompt.
--config FILE
Configuration file.
--help
Display help information.

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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community