docs(block): add context for enable_cursor_positioning

This commit is contained in:
Jan De Dobbeleer 2024-07-13 21:09:47 +02:00 committed by Jan De Dobbeleer
parent 62e782a4eb
commit 34a9b62a16

View file

@ -45,9 +45,13 @@ Tells the engine what to do with the block. There are two options:
### Newline
Start the block on a new line - defaults to `false`. For `bash`, `zsh`, `pwsh` and `cmd` this will not print a newline
Start the block on a new line - defaults to `false`. For `pwsh` and `cmd` this will not print a newline
that's defined on the first block when the prompt is on the first line (when using clear), or when the shell session
starts (1st prompt).
starts (1st prompt). To enable the same behavior for `bash` and `zsh`, set `enable_cursor_positioning` to `true`.
This can have the side effect of swallowing commands you type while the prompt loads, or while the current
command is still ongoing. This is a limitation of the shell and not Oh My Posh.
```json
### Alignment