commands.sh

oh-my-posh

all

Cross platform prompt engine for any shell.

More info →

Examples (8)

Display current shell name

oh-my-posh get shell

Initialize for Bash

eval "$(oh-my-posh init bash --config path/to/theme)"

Initialize for PowerShell

oh-my-posh init pwsh --config path/to/theme | Invoke-Expression

Initialize for Zsh

eval "$(oh-my-posh init zsh --config path/to/theme)"

Enable live reloading

Disable live reloading

Print debug information for troubleshooting

Update to latest version

oh-my-posh upgrade
made by @shridhargupta | data from tldr-pages