Let's take a closer look at what defines a block.
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
- type: prompt
"$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json"
type = "prompt"
alignment = "left"
segments = [
Tells the engine what to do with the block. There are two options:
promptrenders one or more segments
rpromptrenders one or more segments aligned to the right of the cursor. Only one
rpromptblock is permitted. Supported on zsh, bash, PowerShell, cmd and fish.
Start the block on a new line - defaults to
Tell the engine if the block should be left or right-aligned.
When you want to join a right and left aligned block with a repeated set of characters, add the character(s) to be repeated to this property. Add this property to the right aligned block. This supports the use of color overrides.
When the right aligned block is so long it will overflow the left aligned block, the engine will either break the block or hide it based on the setting. By default it is printed as is on the same line.
Array of one or more segments.