Linux
#
Set up your terminalOh My Posh uses ANSI color codes under the hood, these should work in every terminal,
but you may have to set the environment variable $TERM
to xterm-256color
for it to work.
info
To display all icons, we recommend the use of a Nerd Font.
#
Installation- homebrew
- manual
A Homebrew formula is available for easy installation. When installing Homebrew for Linux, be sure to follow Next steps instructions to add Homebrew to your PATH and to your bash shell profile script.
This installs two things:
oh-my-posh
- Executable, added to$(brew --prefix)/bin
themes
- The latest Oh My Posh themes
If you want to use a standard theme, you can find them in $(brew --prefix oh-my-posh)/themes
, referencing them as such
will always keep them compatible when updating Oh My Posh.
#
Updatetip
In case you see strange behaviour in your shell, reload it after upgrading Oh My Posh. For example in zsh:
Oh My Posh can also be installed manually by downloading the release. Depending on your distro, this may or may not work (please refer to the homebrew installation in case it doesn't work).
Download Oh My Posh
Download the themes